Skip to content

Use short commit SHA as Docker image tag

Konrad Botor requested to merge kbotor/use-short-sha-as-docker-tag into main

Switches Docker image tags to short SHAs and fixes BuildKit cache manifests, so they can be managed by GitLab like regular tags.

Note: Variable HEALTHCHECK_TCP_PORT should work if the GitLab runner is at least version 16.0.0: https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/4079, yet it does not appear to be the case: https://gitlab.syncad.com/hive/denser/-/jobs/859356. I'm leaving the variable set, hoping it'll start working eventually. Until then I added appropriate EXPOSE instructions to the Dockerfile.

Edited by Konrad Botor

Merge request reports

Loading