cleanup version numbers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-02-11 12:20:36 +11:00
parent 5eaf5efdb6
commit 84de46a2f2
3 changed files with 3 additions and 8 deletions

View File

@@ -12,11 +12,10 @@ COPY . .
ARG TARGETOS
ARG TARGETARCH
RUN XTEVE_VERSION="$(awk '/^#### /{print $2; exit}' changelog-beta.md)" \
&& XTEVE_VERSION="${XTEVE_VERSION%-beta}" \
&& test -n "${XTEVE_VERSION}" \
RUN XTEVE_VERSION="$(grep -m1 '^#### ' changelog-beta.md | cut -d' ' -f2 | sed 's/-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
go build -trimpath -ldflags="-s -w -X main.Version=$XTEVE_VERSION" -o /out/xteve ./xteve.go
FROM alpine:3.23