Update Image Version to 0a1822c #62
Workflow file for this run
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: buildpush | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| env: | |
| APP_NAME: attestation-api | |
| jobs: | |
| build_test: | |
| # The type of runner that the job will run on | |
| name: buildpush | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - uses: actions/checkout@v5 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Get tag | |
| id: tag | |
| uses: dawidd6/action-get-tag@v1 | |
| with: | |
| strip_v: true | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| build-args: | | |
| APP_NAME=${{ env.APP_NAME }} | |
| push: true | |
| platforms: linux/amd64 | |
| tags: dimozone/${{ env.APP_NAME }}:${{steps.tag.outputs.tag}} | |
| - name: Update Image Version in the related HelmChart values.yaml | |
| uses: fjogeleit/yaml-update-action@v0.16.1 | |
| with: | |
| valueFile: "charts/${{ env.APP_NAME }}/values-prod.yaml" | |
| propertyPath: "image.tag" | |
| value: ${{steps.tag.outputs.tag}} | |
| branch: main | |
| message: "Update Image Version to ${{steps.tag.outputs.tag}}" |