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

Commit 94ecac5

Browse files
committed
use github.sha
Signed-off-by: Alex Co <alex.tuan@mindvalley.com>
1 parent a35dd70 commit 94ecac5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
id: metadata
4949
with:
5050
images: |
51-
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.ref_name }}
51+
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.sha }}
5252
5353
- name: Model Server Image Docker Build and Push
5454
uses: int128/kaniko-action@v1
@@ -63,7 +63,7 @@ jobs:
6363
--snapshot-mode=redo
6464
--cache-ttl=730h
6565
tags: |
66-
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.ref_name }}
66+
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ ggithub.sha }}
6767
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:latest
6868
build-args: |
69-
DANSWER_VERSION=${{ github.ref_name }}
69+
DANSWER_VERSION=${{ github.sha }}

0 commit comments

Comments
 (0)