Skip to content

Commit 17676fa

Browse files
committed
fix: docker build version arg
1 parent 8b510ed commit 17676fa

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,5 @@ jobs:
7070
push: true
7171
tags: ${{ steps.meta.outputs.tags }}
7272
labels: ${{ steps.meta.outputs.labels }}
73+
build-args: |
74+
"VERSION=${VERSION}"

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ WORKDIR /app
33
COPY server server
44
COPY Makefile .
55

6-
ARG VERSION=0.1.0-beta.0
6+
ARG VERSION
77
ENV VERSION="${VERSION}"
88

99
RUN apk add build-base &&\
1010
make clean && make && \
11-
chmod 777 build/server
11+
chmod 777 build/server && \
12+
echo "$VERSION"
1213

1314
FROM alpine:latest
1415
RUN apk --no-cache add ca-certificates

0 commit comments

Comments
 (0)