mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+defenseunicorns.com/zarf (#4935)
* init package definition for zarf Signed-off-by: razzle <harry@razzle.cloud> * comments for clarity Signed-off-by: razzle <harry@razzle.cloud> * build from source Signed-off-by: razzle <harry@razzle.cloud> * handle platform binary names Signed-off-by: razzle <harry@razzle.cloud> * visual simplify * screwed up re-order * rename per github --------- Signed-off-by: razzle <harry@razzle.cloud> Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
1b8dbc9123
commit
5350003189
1 changed files with 36 additions and 0 deletions
36
projects/zarf.dev/package.yml
Normal file
36
projects/zarf.dev/package.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
distributable:
|
||||||
|
url: https://codeload.github.com/defenseunicorns/zarf/tar.gz/refs/tags/v{{version}}
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
display-name: zarf
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: defenseunicorns/zarf
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: '*'
|
||||||
|
env:
|
||||||
|
darwin/aarch64:
|
||||||
|
PLATFORM: mac-apple
|
||||||
|
BIN: zarf-mac-apple
|
||||||
|
darwin/x86-64:
|
||||||
|
PLATFORM: mac-intel
|
||||||
|
BIN: zarf-mac-intel
|
||||||
|
linux/aarch64:
|
||||||
|
PLATFORM: linux-arm
|
||||||
|
BIN: zarf-arm
|
||||||
|
linux/x86-64:
|
||||||
|
PLATFORM: linux-amd
|
||||||
|
BIN: zarf
|
||||||
|
script:
|
||||||
|
- make CLI_VERSION=v{{version}} build-cli-${PLATFORM}
|
||||||
|
- mkdir -p {{prefix}}/bin
|
||||||
|
- chmod +x build/$BIN
|
||||||
|
- mv build/$BIN '{{prefix}}'/bin/zarf
|
||||||
|
skip: fix-patchelf
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/zarf
|
||||||
|
|
||||||
|
test: test "$(zarf version)" = "v{{version}}"
|
Loading…
Reference in a new issue