If you use helm charts or similar, the version of the image would be a variable that is updated outside the repo. ArgoCD can do this with the Application resource.
For example: build code and image, update git reference and version number in Application when build done.
You then get atomic updates of both code and configuration.