mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-07 16:00:31 -05:00
update
This commit is contained in:
parent
8462bc5317
commit
6f04373644
8 changed files with 31 additions and 129 deletions
13
scripts/golang-build-api.sh
Normal file
13
scripts/golang-build-api.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
#%%MULTILINE_YAML_START
|
||||
#Build golang api
|
||||
export GOPATH=/go
|
||||
export PATH=$PATH:$GOPATH/bin
|
||||
|
||||
mkdir output
|
||||
|
||||
go install
|
||||
go install github.com/swaggo/swag/cmd/swag@v1.8.12
|
||||
swag init
|
||||
|
||||
go build -o ./output/main .
|
||||
Loading…
Add table
Add a link
Reference in a new issue