diff --git a/.github/workflows/aws.yaml b/.github/workflows/aws.yaml index 217b3bd..4e673ba 100644 --- a/.github/workflows/aws.yaml +++ b/.github/workflows/aws.yaml @@ -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 "hun5879@naver.com" 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