ci: render
Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/873892655
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
image: registry.durp.info/golang:1.20
|
image: registry.durp.info/golang:1.20
|
||||||
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\ngo build -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"
|
||||||
# End of golang-build-api.sh
|
# End of golang-build-api.sh
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1 hour
|
expire_in: 1 hour
|
||||||
|
|||||||
Reference in New Issue
Block a user