Skip to content

Commit b0a6df3

Browse files
committed
define GIT_COMMIT_SHA in Dockerfile
1 parent 3e1f722 commit b0a6df3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.controlplane/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,7 @@ ENTRYPOINT ["./.controlplane/entrypoint.sh"]
7676
# Default args to pass to the entry point that can be overridden
7777
# For Kubernetes and ControlPlane, these are the "workload args"
7878
CMD ["./bin/rails", "server"]
79+
80+
# Current commit hash environment variable
81+
ARG GIT_COMMIT_SHA
82+
ENV GIT_COMMIT_SHA=${GIT_COMMIT_SHA}

0 commit comments

Comments
 (0)