We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b633720 commit e6afc4cCopy full SHA for e6afc4c
.github/workflows/publish.yml
@@ -143,7 +143,7 @@ jobs:
143
144
- run: docker pull $DOCKER_REPO:${GITHUB_REF_NAME} || echo "no current latest image"
145
146
- - run: docker build -t $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} .
+ - run: docker build --build-arg GIT_COMMIT="${GITHUB_REF_NAME}" -t $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} .
147
148
- run: docker tag $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} $DOCKER_REPO:${GITHUB_REF_NAME}
149
Dockerfile
@@ -1,6 +1,6 @@
1
FROM python:3.9.19-slim-bookworm
2
3
-ARG GIT_COMMIT
+ARG GIT_COMMIT=placeholder
4
ENV GIT_COMMIT=$GIT_COMMIT
5
6
# RUN apk add --no-cache libcurl curl-dev build-base
0 commit comments