-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Donghyeon Im
committed
Jul 25, 2024
1 parent
15c98bd
commit 3ad32f4
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,20 +177,20 @@ jobs: | |
- name: Replace image tag in helm values.yaml | ||
uses: mikefarah/yq@master | ||
env: | ||
IMAGE_TAG: ${{ steps.meta.outputs.tags }} | ||
IMAGE_VERSION: ${{ steps.meta.outputs.version }} | ||
with: | ||
cmd: yq eval -i '.image.tag = env(IMAGE_TAG)' 'chart/${{ env.REPOSITORY }}_${{ env.ENVIRONMENT }}/values.yaml' | ||
cmd: yq eval -i '.image.tag = env(IMAGE_VERSION)' 'chart/${{ env.REPOSITORY }}_${{ env.ENVIRONMENT }}/values.yaml' | ||
|
||
- name: Commit helm chart changes | ||
env: | ||
IMAGE_TAG: ${{ steps.meta.outputs.tags }} | ||
IMAGE_VERSION: ${{ steps.meta.outputs.version }} | ||
run: | | ||
cd chart/${{ env.REPOSITORY }}_${{ env.ENVIRONMENT }} | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "dongdorrong" | ||
git add values.yaml | ||
git commit --message "ci: update ${{ env.REPOSITORY }}_${{ env.ENVIRONMENT }} image tag to $IMAGE_TAG" | ||
git commit --message "ci: update ${{ env.REPOSITORY }}_${{ env.ENVIRONMENT }} image tag to $IMAGE_VERSION" | ||
- name: Push commit | ||
uses: ad-m/github-push-action@master | ||
|