Skip to content

Commit 072cd46

Browse files
committed
fix: docker build version arg
1 parent 17676fa commit 072cd46

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ jobs:
7171
tags: ${{ steps.meta.outputs.tags }}
7272
labels: ${{ steps.meta.outputs.labels }}
7373
build-args: |
74-
"VERSION=${VERSION}"
74+
VERSION=${VERSION}

Dockerfile

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

6-
ARG VERSION
7-
ENV VERSION="${VERSION}"
6+
ARG VERSION="latest"
7+
ENV VERSION="$VERSION"
88

9+
RUN echo "$VERSION"
910
RUN apk add build-base &&\
1011
make clean && make && \
11-
chmod 777 build/server && \
12-
echo "$VERSION"
12+
chmod 777 build/server
1313

1414
FROM alpine:latest
1515
RUN apk --no-cache add ca-certificates

0 commit comments

Comments
 (0)