mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-07 07:50:30 -05:00
ci: render
Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/1084897303
This commit is contained in:
parent
7846749fde
commit
1cdab13068
1 changed files with 3 additions and 4 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
.golang-build-api:
|
.golang-build-api:
|
||||||
variables:
|
variables:
|
||||||
GO-VERSION: "1.20"
|
#GOPROXY: https://nexus.durp.info/repository/go/
|
||||||
#GOPROXY: https://nexus.durp.info/repository/go/
|
image: registry.durp.info/golang:${GO_VERSION}
|
||||||
image: registry.durp.info/golang:${GO-VERSION}
|
|
||||||
script:
|
script:
|
||||||
# Begin of golang-build-api.sh
|
# Begin of golang-build-api.sh
|
||||||
- "#Build golang api\nexport GOPATH=/go\nexport PATH=$PATH:$GOPATH/bin\nmkdir output\ngo install \ngo install github.com/swaggo/swag/cmd/swag@v1.8.12 \nswag init\nCGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ./output/main .\n"
|
- "#Build golang api\nexport GOPATH=/go\nexport PATH=$PATH:$GOPATH/bin\nmkdir output\ngo install \ngo install github.com/swaggo/swag/cmd/swag@v1.8.12 \nswag init\nCGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ./output/main .\n"
|
||||||
|
|
@ -15,7 +14,7 @@
|
||||||
variables:
|
variables:
|
||||||
#GOPROXY: https://nexus.durp.info/repository/go/
|
#GOPROXY: https://nexus.durp.info/repository/go/
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
image: registry.durp.info/golangci/golangci-lint:${GOLANGCI-LINT-VERISON}
|
image: registry.durp.info/golangci/golangci-lint:${GOLANGCI_LINT_VERISON}
|
||||||
script:
|
script:
|
||||||
# Begin of golang-lint.sh
|
# Begin of golang-lint.sh
|
||||||
- |
|
- |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue