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