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

Commit

Permalink
Merge pull request #54 from mindvalley/chore/use-github-sha-everywhere
Browse files Browse the repository at this point in the history
Use github sha instead of ref name
  • Loading branch information
onimsha authored Sep 6, 2024
2 parents df55d37 + f25f5ee commit 14cc570
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gar-build-push-backend-container-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
id: metadata
with:
images: |
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.ref_name }}
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.sha }}
- name: Backend Image Docker Build and Push
uses: int128/kaniko-action@v1
Expand All @@ -60,7 +60,7 @@ jobs:
--snapshot-mode=redo
--cache-ttl=730h
tags: |
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.ref_name }}
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.sha }}
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:latest
build-args: |
DANSWER_VERSION=${{ github.ref_name }}
DANSWER_VERSION=${{ github.sha }}
6 changes: 3 additions & 3 deletions .github/workflows/gar-build-push-web-container-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
id: metadata
with:
images: |
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.ref_name }}
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.sha }}
- name: Web Image Docker Build and Push
uses: int128/kaniko-action@v1
Expand All @@ -60,7 +60,7 @@ jobs:
--snapshot-mode=redo
--cache-ttl=730h
tags: |
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.ref_name }}
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:${{ github.sha }}
us-docker.pkg.dev/${{ env.GarProjectID }}/${{ env.GarRepo }}/${{ env.GarImageName }}:latest
build-args: |
DANSWER_VERSION=${{ github.ref_name }}
DANSWER_VERSION=${{ github.sha }}

0 comments on commit 14cc570

Please sign in to comment.