In case the event triggering the docker-publish action is a pull request, the GITHUB_SHA used in image tag is a commit SHA that is dynamically generated by GitHub and differs from the branch's latest commit SHA. More information here: https://github.com/orgs/community/discussions/25191#discussioncomment-3246770
To easily match dev deployments to open PRs, it would be helpful if the SHA in the image tag would reflect the branch's latest commit SHA.
The docker-publish action uses variable
GITHUB_SHA
to tag images: https://github.com/bakdata/ci-templates/blob/8e5f4dbd8ede7c49f1dab22e0c0a6a847e4aa26d/actions/docker-publish/action.yaml#L20In case the event triggering the docker-publish action is a pull request, the
GITHUB_SHA
used in image tag is a commit SHA that is dynamically generated by GitHub and differs from the branch's latest commit SHA. More information here: https://github.com/orgs/community/discussions/25191#discussioncomment-3246770To easily match dev deployments to open PRs, it would be helpful if the SHA in the image tag would reflect the branch's latest commit SHA.