|
16 | 16 |
|
17 | 17 | jobs: |
18 | 18 | docker: |
19 | | - if: ${{ github.event.workflow_run.conclusion == 'success' }} |
20 | 19 | runs-on: ubuntu-latest |
21 | 20 | # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. |
22 | 21 | permissions: |
|
28 | 27 | - name: Checkout repository |
29 | 28 | uses: actions/checkout@v5 |
30 | 29 | with: |
31 | | - ref: ${{ github.event.workflow_run.head_branch }} |
| 30 | + ref: ${{ github.event.release.tag_name }} |
32 | 31 |
|
33 | 32 | - name: Set up QEMU |
34 | 33 | uses: docker/setup-qemu-action@v3 |
|
51 | 50 | with: |
52 | 51 | images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_MAIN }} |
53 | 52 | tags: | |
54 | | - type=raw,value=${{ github.event.workflow_run.head_branch }} |
| 53 | + type=raw,value=${{ github.event.release.tag_name }} |
55 | 54 |
|
56 | 55 | - name: Build and push Docker image |
57 | 56 | id: push-main |
|
60 | 59 | context: ./infrastructure/display-api-service/ |
61 | 60 | file: ./infrastructure/display-api-service/Dockerfile |
62 | 61 | build-args: | |
63 | | - APP_VERSION=${{ github.event.workflow_run.head_branch }} |
| 62 | + APP_VERSION=${{ github.event.release.tag_name }} |
64 | 63 | push: true |
65 | 64 | tags: ${{ steps.meta-main.outputs.tags }} |
66 | 65 | labels: ${{ steps.meta-main.outputs.labels }} |
|
82 | 81 | with: |
83 | 82 | images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_NGINX }} |
84 | 83 | tags: | |
85 | | - type=raw,value=${{ github.event.workflow_run.head_branch }} |
| 84 | + type=raw,value=${{ github.event.release.tag_name }} |
86 | 85 |
|
87 | 86 | - name: Build and push Docker image |
88 | 87 | id: push-nginx |
|
91 | 90 | context: ./infrastructure/nginx/ |
92 | 91 | file: ./infrastructure/nginx/Dockerfile |
93 | 92 | build-args: | |
94 | | - APP_VERSION=${{ github.event.workflow_run.head_branch }} |
| 93 | + APP_VERSION=${{ github.event.release.tag_name }} |
95 | 94 | push: true |
96 | 95 | tags: ${{ steps.meta-nginx.outputs.tags }} |
97 | 96 | labels: ${{ steps.meta-nginx.outputs.labels }} |
|
0 commit comments