Skip to content

fix(docker): resolve git revision in Dockerfile#104

Merged
JanZachmann merged 1 commit intoomnect:mainfrom
JanZachmann:fix/git-short-rev-docker
Feb 25, 2026
Merged

fix(docker): resolve git revision in Dockerfile#104
JanZachmann merged 1 commit intoomnect:mainfrom
JanZachmann:fix/git-short-rev-docker

Conversation

@JanZachmann
Copy link
Contributor

@JanZachmann JanZachmann commented Feb 18, 2026

Summary

  • Added a git-info Dockerfile stage that extracts GIT_SHORT_REV from .git directly, replacing the fragile ARG GIT_SHORT_REV="unknown" default
  • Removed GIT_SHORT_REV build-arg plumbing from build-and-deploy-image.sh

… build arg

The GIT_SHORT_REV build arg defaulted to "unknown" and was never passed
by the Concourse CI pipeline, so production images shipped without the
actual git revision. Add a dedicated git-info Dockerfile stage that
extracts the revision from .git directly, making the build self-contained.

Signed-off-by: Jan Zachmann <50990105+JanZachmann@users.noreply.github.com>
@JanZachmann JanZachmann force-pushed the fix/git-short-rev-docker branch from e567077 to be86eba Compare February 25, 2026 11:57
@JanZachmann JanZachmann merged commit a98d687 into omnect:main Feb 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant