From a525849c910d93fae5358dc250d09f350a663852 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 12 Jan 2024 06:21:55 -0500 Subject: [PATCH] +arkade (#4824) Closes #4817 --- projects/arkade.dev/package.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 projects/arkade.dev/package.yml diff --git a/projects/arkade.dev/package.yml b/projects/arkade.dev/package.yml new file mode 100644 index 00000000..7aa1e1f9 --- /dev/null +++ b/projects/arkade.dev/package.yml @@ -0,0 +1,31 @@ +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 \ No newline at end of file