diff --git a/.gitignore b/.gitignore index b8ca993..c4b2ffe 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ !legal/* +!.woodpecker.yml !LICENSE !Makefile !README.md diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..1974fc8 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,17 @@ +# -- Switch back to depends_on when 2.1.x becomes available via cli + +steps: + generate: + image: bufbuild/buf:1.28.1 + commands: + - buf generate https://code.pitz.tech/licensing/proto.git + - git status -s + + license: + image: golang:1.20 + environment: + GO111MODULE: on + GOBIN: /usr/local/bin + commands: + - go install github.com/google/addlicense@latest + - addlicense -check -f ./legal/header.txt -skip yaml -skip yml -skip xml . diff --git a/README.md b/README.md index 69f6f0f..2075f4c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # api-go -Golang implementation of the Licensing API as defined by the [proto](https://code.pitz.tech/licensing/proto) repository. +[![status-badge](https://build.pitz.tech/api/badges/2/status.svg)](https://build.pitz.tech/repos/2) + +A Golang implementation of the Licensing API as defined by the [proto][] repository. + +[proto]: https://code.pitz.tech/licensing/proto ```go package main