Skip to content

Commit

Permalink
update env
Browse files Browse the repository at this point in the history
  • Loading branch information
kim.doyoung committed Nov 22, 2023
1 parent c3123b8 commit c0de9b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
context: .
push: true
tags: ${{ env.PRIVATE_REGISTRY_URL }}/${{ env.SERVICE_NAME }}:${{ github.sha }}
labels: ${{ env.GITHUB_SHA }}
labels: ${{ github.sha }}

deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -106,13 +106,13 @@ jobs:
- name: Update Kubernetes resources
run: |
cd prd
kustomize edit set image ${{ env.PRIVATE_REGISTRY_URL }}/${{ env.SERVICE_NAME }}:${{ env.GITHUB_SHA }}
kustomize edit set image ${{ env.PRIVATE_REGISTRY_URL }}/${{ env.SERVICE_NAME }}:${{ github.sha }}
cat kustomization.yaml
# 수정된 파일 commit & push
- name: Commit files
run: |
git config user.name github-actions
git config user.email [email protected]
git commit -am "Update image tag ${{ env.PRIVATE_REGISTRY_URL }}/${{ env.SERVICE_NAME }}:${{ env.GITHUB_SHA }}"
git commit -am "Update image tag ${{ env.PRIVATE_REGISTRY_URL }}/${{ env.SERVICE_NAME }}:${{ github.sha }}"
git push origin main

0 comments on commit c0de9b7

Please sign in to comment.