Skip to content
Snippets Groups Projects
Verified Commit 5ab53bb3 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

ci: move go get & go install -> Makefile

parent b6b10b1e
No related branches found
No related tags found
No related merge requests found
......@@ -80,9 +80,6 @@ build:
build-openapi-2-scheme:
stage: build
script:
- go get github.com/swaggo/swag/gen@v1.16.3
- go get github.com/swaggo/swag/cmd/swag@v1.16.3
- go install github.com/swaggo/swag/cmd/swag
- make api-docs
rules: *feature-rules
artifacts:
......
......@@ -54,6 +54,9 @@ fmt-api-docs:
$(SWAG) fmt $(SWAG_ARGS)
api-docs:
go get github.com/swaggo/swag/gen@v1.16.4
go get -u github.com/swaggo/swag/cmd/swag
go install github.com/swaggo/swag/cmd/swag@latest
$(SWAG) init $(SWAG_ARGS) --pd -o api/docs
# build target actually depends on api-docs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment