ci: render

Rendered by https://gitlab.durp.info/durfy/ci-includes/yml/-/pipelines/155
This commit is contained in:
DeveloperDurpBot 2026-02-27 11:44:52 +00:00
parent f315a27b10
commit 45e6fdeb57
9 changed files with 15 additions and 15 deletions

View file

@ -1,7 +1,7 @@
.golang-build:
variables:
#GOPROXY: https://nexus.durp.info/repository/go/
image: registry.internal.durp.info/golang:${GO_VERSION}
image: registry.durp.info/golang:${GO_VERSION}
script:
# Begin of golang-build.sh
- "#Build golang project\nexport GOPATH=/go\nexport PATH=$PATH:$GOPATH/bin\nmkdir output\n#go install \ngo mod download\n# Check if go.mod contains \"swag\"\nif grep -q \"swag\" go.mod; then\n echo \"Found 'swag' in go.mod. Running swag init...\"\n go install github.com/swaggo/swag/cmd/swag@latest\n swag init --parseDependency\nfi\nCGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ./output/main .\n"
@ -14,7 +14,7 @@
variables:
#GOPROXY: https://nexus.durp.info/repository/go/
CGO_ENABLED: 0
image: registry.internal.durp.info/golangci/golangci-lint:${GOLANGCI_LINT_VERISON}
image: registry.durp.info/golangci/golangci-lint:${GOLANGCI_LINT_VERISON}
script:
# Begin of golang-lint.sh
- |