From baedbf6841e5a6d492b8598caf76c3517507a9a2 Mon Sep 17 00:00:00 2001 From: DeveloperDurpBot Date: Fri, 5 Apr 2024 14:01:22 +0000 Subject: [PATCH] ci: render Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/1241751285 --- jobs/golang.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/golang.yml b/jobs/golang.yml index f3e1ca7..adb9bfa 100644 --- a/jobs/golang.yml +++ b/jobs/golang.yml @@ -4,7 +4,7 @@ image: registry.internal.durp.info/golang:${GO_VERSION} script: # Begin of golang-build.sh - - "#Build golang project\nexport GOPATH=/go\nexport PATH=$PATH:$GOPATH/bin\nmkdir output\ngo install \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@v1.8.12 \n swag init\nfi\nCGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ./output/main .\n" + - "#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@v1.8.12 \n swag init\nfi\nCGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ./output/main .\n" # End of golang-build.sh artifacts: expire_in: 1 hour