ajuste no drone

This commit is contained in:
Marcus Bohessef 2026-01-06 20:32:48 -03:00
parent e4f2caf219
commit fdfbc93a36

View file

@ -30,9 +30,7 @@ COPY docs ./docs
# - ldflags -s -w: Strip debug info (-4MB)
# - trimpath: Remove local paths
# - -a: Rebuild all packages
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
-ldflags="-s -w -X main.Version=$(git describe --tags --always 2>/dev/null || echo 'dev')" \
-trimpath \
-o /app/main ./cmd/api