.
This commit is contained in:
14
obs-staging-bot/Makefile
Normal file
14
obs-staging-bot/Makefile
Normal file
@@ -0,0 +1,14 @@
|
||||
all: build
|
||||
|
||||
api.json:
|
||||
curl -o api.json https://src.opensuse.org/swagger.v1.json
|
||||
|
||||
generated/client/gitea_api_client.go: api.json
|
||||
[ -d generated ] || mkdir generated
|
||||
podman run --rm -v $$(pwd):/api ghcr.io/go-swagger/go-swagger generate client -f /api/api.json -t /api/generated
|
||||
|
||||
api: generated/client/gitea_api_client.go
|
||||
|
||||
build: api
|
||||
go build
|
||||
|
Reference in New Issue
Block a user