pantry/projects/arkade.dev/package.yml
Max Howell a525849c91
+arkade (#4824)
Closes #4817
2024-01-12 06:21:55 -05:00

31 lines
No EOL
620 B
YAML

distributable:
url: git+https://github.com/alexellis/arkade
ref: ${{version.tag}}
display-name: Arkade
versions:
github: alexellis/arkade/releases/tags
provides:
- bin/arkade
build:
dependencies:
go.dev: ^1.21
git-scm.org: ^2
script:
go build -v -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/arkade
env:
LDFLAGS:
- -s
- -w
- -X github.com/alexellis/arkade/pkg.Version={{version}}
- -X github.com/alexellis/arkade/pkg.GitCommit=$(git rev-parse HEAD)"
linux:
LDFLAGS:
- -buildmode=pie
test:
- arkade version | grep {{version}}
- arkade info openfaas