Update new imageTag in values.yaml for ArgoCD Deployment without git push to a protected branch

240 Views Asked by At

I have my workflow in Github Actions which builds the Docker Image & Tags it. In the next Job I am updating the image_tag in the values.yaml as below,

sed -i -e 's/imageTag: .*/'"imageTag: $image_tag/" ./charts/$values.yaml

Commit the change & git push using a pat token

git push https://[email protected]/test/argo-content.git HEAD:test

This works fine until we enable Branch Protection Rules, which results in failure with git push.

Have also tried Didn't Work

Wanted to check if there is any work around updating the image Tag without a git push through scripting.

Need Suggestions.

0

There are 0 best solutions below