Repository navigation
attempt to fix OHSOME_STATS_TOPICS frontend container build error #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build frontend container | |
| on: | |
| push: | |
| branches: | |
| - production | |
| - staging | |
| - develop | |
| env: | |
| IMAGE_NAME: frontend | |
| # IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} | |
| IMAGE_REGISTRY: ghcr.io/maprva | |
| REGISTRY_USER: ${{ github.actor }} | |
| REGISTRY_PASSWORD: ${{ github.token }} | |
| jobs: | |
| build: | |
| name: Build Image | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Get Short Commit SHA | |
| id: vars | |
| run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| - name: Check outputs | |
| run: echo ${{ steps.vars.outputs.sha_short }} | |
| - name: Buildah Action | |
| id: build_image | |
| uses: redhat-actions/buildah-build@v2 | |
| with: | |
| image: ${{ env.IMAGE_NAME }} | |
| tags: ${{ steps.vars.outputs.sha_short }} ${{ github.ref_name }} | |
| containerfiles: | | |
| ./scripts/docker/Dockerfile.frontend | |
| - name: Push Image | |
| id: push | |
| uses: redhat-actions/push-to-registry@v2 | |
| with: | |
| image: ${{ steps.build_image.outputs.image }} | |
| tags: ${{ steps.build_image.outputs.tags }} | |
| registry: ${{ env.IMAGE_REGISTRY }} | |
| username: ${{ env.REGISTRY_USER }} | |
| password: ${{ env.REGISTRY_PASSWORD }} | |
| - name: Echo outputs | |
| run: | | |
| echo "${{ toJSON(steps.push.outputs) }}" |