Skip to content

Commit 7673c60

Browse files
committed
6601: Added image build on published release - III
1 parent ba30619 commit 7673c60

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/docker_build_images_from_tag.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ env:
1616

1717
jobs:
1818
docker:
19-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2019
runs-on: ubuntu-latest
2120
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
2221
permissions:
@@ -28,7 +27,7 @@ jobs:
2827
- name: Checkout repository
2928
uses: actions/checkout@v5
3029
with:
31-
ref: ${{ github.event.workflow_run.head_branch }}
30+
ref: ${{ github.event.release.tag_name }}
3231

3332
- name: Set up QEMU
3433
uses: docker/setup-qemu-action@v3
@@ -51,7 +50,7 @@ jobs:
5150
with:
5251
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_MAIN }}
5352
tags: |
54-
type=raw,value=${{ github.event.workflow_run.head_branch }}
53+
type=raw,value=${{ github.event.release.tag_name }}
5554
5655
- name: Build and push Docker image
5756
id: push-main
@@ -60,7 +59,7 @@ jobs:
6059
context: ./infrastructure/display-api-service/
6160
file: ./infrastructure/display-api-service/Dockerfile
6261
build-args: |
63-
APP_VERSION=${{ github.event.workflow_run.head_branch }}
62+
APP_VERSION=${{ github.event.release.tag_name }}
6463
push: true
6564
tags: ${{ steps.meta-main.outputs.tags }}
6665
labels: ${{ steps.meta-main.outputs.labels }}
@@ -82,7 +81,7 @@ jobs:
8281
with:
8382
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_NGINX }}
8483
tags: |
85-
type=raw,value=${{ github.event.workflow_run.head_branch }}
84+
type=raw,value=${{ github.event.release.tag_name }}
8685
8786
- name: Build and push Docker image
8887
id: push-nginx
@@ -91,7 +90,7 @@ jobs:
9190
context: ./infrastructure/nginx/
9291
file: ./infrastructure/nginx/Dockerfile
9392
build-args: |
94-
APP_VERSION=${{ github.event.workflow_run.head_branch }}
93+
APP_VERSION=${{ github.event.release.tag_name }}
9594
push: true
9695
tags: ${{ steps.meta-nginx.outputs.tags }}
9796
labels: ${{ steps.meta-nginx.outputs.labels }}

0 commit comments

Comments
 (0)