Skip to content

Commit

Permalink
ci: update gha
Browse files Browse the repository at this point in the history
  • Loading branch information
lmquang committed Nov 8, 2024
1 parent 8e45ae7 commit 8c28848
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-push-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
AR_REGION: asia-southeast1
REPOSITORY: icy
IMAGE_NAME: backend
K8S_ENVIRONMENT: dev

jobs:
build-and-push:
Expand Down Expand Up @@ -61,7 +62,7 @@ jobs:
ref: main
- name: Update api version
run: |
cd ./infrastructure/icy/backend/$K8S_ENVIRONMENT
cd ./infrastructure/icy/backend/${{ env.K8S_ENVIRONMENT }}
git config user.name lmquang
git config user.email [email protected]
/tmp/kustomize edit set image ${{ env.AR_REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }}=${{ env.AR_REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build-and-push-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ env:
AR_REGION: asia-southeast1
REPOSITORY: icy
IMAGE_NAME: backend

K8S_ENVIRONMENT: prod

jobs:
build-and-push:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -60,7 +61,7 @@ jobs:
ref: main
- name: Update api version
run: |
cd ./infrastructure/icy/backend/$K8S_ENVIRONMENT
cd ./infrastructure/icy/backend/${{ env.K8S_ENVIRONMENT }}
git config user.name lmquang
git config user.email [email protected]
/tmp/kustomize edit set image ${{ env.AR_REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }}=${{ env.AR_REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
Expand Down

0 comments on commit 8c28848

Please sign in to comment.