Skip to content

Commit

Permalink
fix: test cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
Donghyeon Im committed Jul 25, 2024
1 parent 15c98bd commit 3ad32f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ad32f4

Please sign in to comment.