Fix partial builds on armv7
continuous-integration/drone/push Build is passing Details

This commit is contained in:
nemunaire 2023-09-19 10:16:21 +02:00
parent bb333f1219
commit 3a03b6fbbc
1 changed files with 3 additions and 3 deletions

View File

@ -523,9 +523,9 @@ steps:
image: golang:1-alpine
commands:
- apk --no-cache add build-base git
- "[ -d docs ] || sed -i '/npm run build/d' ui/assets.go"
- "[ -d docs ] || go install github.com/swaggo/swag/cmd/swag@latest"
- "[ -d docs ] || go generate -v ./..."
- "[ -f docs/docs.go ] || sed -i '/npm run build/d' ui/assets.go"
- "[ -f docs/docs.go ] || go install github.com/swaggo/swag/cmd/swag@latest"
- "[ -f docs/docs.go ] || go generate -v ./..."
- go build -v -tags netgo,swagger,ui -ldflags '-w -X "main.Version=${DRONE_BRANCH}-${DRONE_COMMIT}" -X main.build=${DRONE_BUILD_NUMBER}' -o happydomain-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}v7
- ln happydomain-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}v7 happydomain
environment: