Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit 14cc570

Browse files
authored
Merge pull request #54 from mindvalley/chore/use-github-sha-everywhere
Use github sha instead of ref name
2 parents df55d37 + f25f5ee commit 14cc570

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/gar-build-push-backend-container-on-tag.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
id: metadata
4646
with:
4747
images: |
48-
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.ref_name }}
48+
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.sha }}
4949
5050
- name: Backend Image Docker Build and Push
5151
uses: int128/kaniko-action@v1
@@ -60,7 +60,7 @@ jobs:
6060
--snapshot-mode=redo
6161
--cache-ttl=730h
6262
tags: |
63-
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.ref_name }}
63+
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.sha }}
6464
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:latest
6565
build-args: |
66-
DANSWER_VERSION=${{ github.ref_name }}
66+
DANSWER_VERSION=${{ github.sha }}

.github/workflows/gar-build-push-web-container-on-tag.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
id: metadata
4646
with:
4747
images: |
48-
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.ref_name }}
48+
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.sha }}
4949
5050
- name: Web Image Docker Build and Push
5151
uses: int128/kaniko-action@v1
@@ -60,7 +60,7 @@ jobs:
6060
--snapshot-mode=redo
6161
--cache-ttl=730h
6262
tags: |
63-
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.ref_name }}
63+
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.sha }}
6464
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:latest
6565
build-args: |
66-
DANSWER_VERSION=${{ github.ref_name }}
66+
DANSWER_VERSION=${{ github.sha }}

0 commit comments

Comments
 (0)