mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+linkerd.io/linkerd2 (#3982)
* +linkerd.io/linkerd2 * +linkerd.io/linkerd2 -- build directly * Revert "+linkerd.io/linkerd2 -- build directly" This reverts commit 342257cd1388348255620324c9dfd7e07b2dddc7. * +linkerd.io/linkerd2 -- fix platform variable; add CI_FORCE_CLEAN
This commit is contained in:
parent
339412ad00
commit
efc12aca61
1 changed files with 34 additions and 0 deletions
34
projects/linkerd.io/linkerd2/package.yml
Normal file
34
projects/linkerd.io/linkerd2/package.yml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
distributable:
|
||||||
|
url: git+https://github.com/linkerd/linkerd2
|
||||||
|
ref: stable-{{version}}
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: linkerd/linkerd2
|
||||||
|
match: /^stable-.*/
|
||||||
|
strip: /^stable-/
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.21
|
||||||
|
git-scm.org: "*"
|
||||||
|
script: |
|
||||||
|
./bin/build-cli-bin
|
||||||
|
mkdir -p "{{ prefix }}"/bin
|
||||||
|
mv target/cli/$PLATFORM/linkerd "{{ prefix }}"/bin
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
CI_FORCE_CLEAN: 1
|
||||||
|
darwin: {PLATFORM: darwin}
|
||||||
|
linux/aarch64: {PLATFORM: linux-arm64}
|
||||||
|
linux/x86-64: {PLATFORM: linux-amd64}
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/linkerd
|
||||||
|
|
||||||
|
test:
|
||||||
|
script: |
|
||||||
|
test "$(linkerd version --client)" = "Client version: stable-{{version}}"
|
||||||
|
linkerd install --ignore-cluster --crds > crds.yml
|
||||||
|
test -f crds.yml
|
||||||
|
linkerd install --ignore-cluster > linkerd.yml
|
||||||
|
test -f linkerd.yml
|
Loading…
Reference in a new issue