fix: docker build version arg
This commit is contained in:
parent
8b510ed556
commit
17676fa13b
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
@ -70,3 +70,5 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
build-args: |
|
||||||
|
"VERSION=${VERSION}"
|
||||||
|
|
|
@ -3,12 +3,13 @@ WORKDIR /app
|
||||||
COPY server server
|
COPY server server
|
||||||
COPY Makefile .
|
COPY Makefile .
|
||||||
|
|
||||||
ARG VERSION=0.1.0-beta.0
|
ARG VERSION
|
||||||
ENV VERSION="${VERSION}"
|
ENV VERSION="${VERSION}"
|
||||||
|
|
||||||
RUN apk add build-base &&\
|
RUN apk add build-base &&\
|
||||||
make clean && make && \
|
make clean && make && \
|
||||||
chmod 777 build/server
|
chmod 777 build/server && \
|
||||||
|
echo "$VERSION"
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk --no-cache add ca-certificates
|
RUN apk --no-cache add ca-certificates
|
||||||
|
|
Loading…
Reference in New Issue
Block a user