This commit is contained in:
@@ -12,8 +12,11 @@ COPY . .
|
||||
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
|
||||
go build -trimpath -ldflags='-s -w' -o /out/xteve ./xteve.go
|
||||
RUN XTEVE_VERSION="$(awk '/^#### /{print $2; exit}' changelog-beta.md)" \
|
||||
&& XTEVE_VERSION="${XTEVE_VERSION%-beta}" \
|
||||
&& test -n "${XTEVE_VERSION}" \
|
||||
&& CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
|
||||
go build -trimpath -ldflags="-s -w -X main.Version=${XTEVE_VERSION}" -o /out/xteve ./xteve.go
|
||||
|
||||
FROM alpine:3.20
|
||||
|
||||
|
||||
Reference in New Issue
Block a user