1 parent
a23cc7a183
commit
43a9cf5a7e
11 files changed
+90
-19
No files matched your search
+5
-2
@@ -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