1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-04 15:04:43 +00:00

ci/cd: update release pipelines (#541)

This commit is contained in:
Alessandro (Ale) Segala
2025-05-17 11:17:55 -07:00
committed by Elias Schneider
parent f8a7467ec0
commit 35b227cd17
7 changed files with 89 additions and 43 deletions

View File

@@ -1,3 +1,5 @@
# This file uses multi-stage builds to build the application from source, including the front-end
# Tags passed to "go build"
ARG BUILD_TAGS=""
@@ -26,7 +28,8 @@ RUN VERSION=$(cat /build/.version) \
GOOS=linux \
go build \
-tags "${BUILD_TAGS}" \
-ldflags="-X github.com/pocket-id/pocket-id/backend/internal/common.Version=${VERSION}" \
-ldflags="-X github.com/pocket-id/pocket-id/backend/internal/common.Version=${VERSION} -buildid=${VERSION}" \
-trimpath \
-o /build/pocket-id-backend \
.