ajuste no drone
This commit is contained in:
parent
e4f2caf219
commit
fdfbc93a36
1 changed files with 1 additions and 3 deletions
|
|
@ -30,9 +30,7 @@ COPY docs ./docs
|
||||||
# - ldflags -s -w: Strip debug info (-4MB)
|
# - ldflags -s -w: Strip debug info (-4MB)
|
||||||
# - trimpath: Remove local paths
|
# - trimpath: Remove local paths
|
||||||
# - -a: Rebuild all packages
|
# - -a: Rebuild all packages
|
||||||
RUN --mount=type=cache,target=/go/pkg/mod \
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
|
||||||
--mount=type=cache,target=/root/.cache/go-build \
|
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
|
|
||||||
-ldflags="-s -w -X main.Version=$(git describe --tags --always 2>/dev/null || echo 'dev')" \
|
-ldflags="-s -w -X main.Version=$(git describe --tags --always 2>/dev/null || echo 'dev')" \
|
||||||
-trimpath \
|
-trimpath \
|
||||||
-o /app/main ./cmd/api
|
-o /app/main ./cmd/api
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue