Skip to content

Commit e6afc4c

Browse files
committed
Fixed missing app version argument in GHA workflow
1 parent b633720 commit e6afc4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143

144144
- run: docker pull $DOCKER_REPO:${GITHUB_REF_NAME} || echo "no current latest image"
145145

146-
- run: docker build -t $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} .
146+
- run: docker build --build-arg GIT_COMMIT="${GITHUB_REF_NAME}" -t $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} .
147147

148148
- run: docker tag $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} $DOCKER_REPO:${GITHUB_REF_NAME}
149149

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.9.19-slim-bookworm
22

3-
ARG GIT_COMMIT
3+
ARG GIT_COMMIT=placeholder
44
ENV GIT_COMMIT=$GIT_COMMIT
55

66
# RUN apk add --no-cache libcurl curl-dev build-base

0 commit comments

Comments
 (0)