Files
yml/templates/golang.tpl.yml
2023-11-25 07:49:14 -06:00

21 lines
534 B
YAML

.golang-build-api:
variables:
GO-VERSION: "1.20"
#GOPROXY: https://nexus.durp.info/repository/go/
image: registry.durp.info/golang:${GO-VERSION}
script:
- ./scripts/golang-build-api.sh
artifacts:
expire_in: 1 hour
paths:
- $CI_PROJECT_DIR/output
.golang-lint:
variables:
#GOPROXY: https://nexus.durp.info/repository/go/
GOLANGCI-LINT-VERISON: "v1.55.2"
CGO_ENABLED: 0
image: registry.durp.info/golangci/golangci-lint:${GOLANGCI-LINT-VERISON}
script:
- ./scripts/golang-lint.sh