we are trying to use GitOps at my company using ArgoCD and we have one primary concern:
Jenkins, our CI tool, currently pushed to our docker repo on merge of any PR with a tag relating to the git commit hash currently in use.
Edit: We would like, upon choosing a targetRevision, to get its git hash as a string to use in value overwriting the imageTag in our helm charts.
Now Option 1 is we just have it also change the imageTag in any relevant kubernetes files.
However I wonder if there is a way using PreSync hooks for ArgoCD to do this automatically. It knows the git hash already as it has pulled git. And having Jenkins make a git commit is never ideal.
Thanks for the help!