diff --git a/projects/outagedeck.com/package.yml b/projects/outagedeck.com/package.yml new file mode 100644 index 0000000000..07bda04660 --- /dev/null +++ b/projects/outagedeck.com/package.yml @@ -0,0 +1,24 @@ +distributable: + url: https://github.com/outagedeck/cli/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +versions: + github: outagedeck/cli + +build: + dependencies: + go.dev: ^1.22 + script: go build -trimpath -ldflags "$LDFLAGS" -o {{prefix}}/bin/outagedeck ./cmd/outagedeck + env: + CGO_ENABLED: 0 + LDFLAGS: + - -s + - -w + - -X main.version={{version}} + +provides: + - bin/outagedeck + +test: + - test "$(outagedeck version)" = "{{version}}" + - outagedeck --help | grep 'check cloud and SaaS status from official vendor feeds'