mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 05:18:12 -05:00
Skip build vcs lookups, go 1.20 thing
This commit is contained in:
parent
0eeed1695c
commit
bc3d9ec099
@ -30,7 +30,7 @@ tasks:
|
||||
silent: true
|
||||
- cmd: rm -f dist/bin/*
|
||||
silent: true
|
||||
- cmd: go build -ldflags="-X main.commit={{.GIT_COMMIT}} -X main.version={{.VERSION}}" -o ../dist/bin/server ./cmd/server/main.go
|
||||
- cmd: go build -buildvcs=false -ldflags="-X main.commit={{.GIT_COMMIT}} -X main.version={{.VERSION}}" -o ../dist/bin/server ./cmd/server/main.go
|
||||
silent: true
|
||||
- task: lint
|
||||
vars:
|
||||
|
@ -54,6 +54,7 @@ build_backend() {
|
||||
-w '/app/backend' \
|
||||
"${IMAGE}" \
|
||||
go build \
|
||||
-buildvcs=false \
|
||||
-ldflags "-w -s -X main.commit=${BUILD_COMMIT:-notset} -X main.version=${BUILD_VERSION} -X main.sentryDSN=${SENTRY_DSN:-}" \
|
||||
-o "/app/bin/$FILENAME" \
|
||||
./cmd/server
|
||||
|
@ -23,6 +23,7 @@ esac
|
||||
echo -e "${BLUE}❯ ${CYAN}Building binary for ${YELLOW}${GOARCH} (${TARGETPLATFORM:-})${RESET}"
|
||||
|
||||
go build \
|
||||
-buildvcs=false \
|
||||
-ldflags "-w -s -X main.commit=${BUILD_COMMIT:-notset} -X main.version=${BUILD_VERSION} -X main.sentryDSN=${SENTRY_DSN:-}" \
|
||||
-o "${1:-/dist/server}" \
|
||||
./cmd/server
|
||||
|
Loading…
Reference in New Issue
Block a user