mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
parent
2c3872d118
commit
b1525b9237
|
@ -13,20 +13,23 @@ dependencies:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
cmake.org: "*"
|
cmake.org: '*'
|
||||||
git-scm.org: "*"
|
git-scm.org: '*'
|
||||||
script: |
|
script:
|
||||||
make build/operator-sdk
|
- make build/operator-sdk
|
||||||
mkdir -p "{{ prefix }}"/bin
|
- mkdir -p "{{ prefix }}"/bin
|
||||||
mv build/operator-sdk "{{ prefix }}"/bin
|
- mv build/operator-sdk "{{ prefix }}"/bin
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/operator-sdk
|
- bin/operator-sdk
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script: |
|
script:
|
||||||
operator-sdk version | grep 'operator-sdk version: "v{{version}}"'
|
- 'operator-sdk version | grep ''operator-sdk version: "v{{version}}"'''
|
||||||
mkdir -p example-operator
|
- mkdir -p example-operator
|
||||||
cd example-operator
|
- cd example-operator
|
||||||
operator-sdk init --project-name example-operator --domain example.com --repo github.com/example/example-operator
|
- operator-sdk init --project-name example-operator --domain example.com --repo github.com/example/example-operator
|
||||||
test -f main.go
|
- run: test -f main.go
|
||||||
|
if: '<1.33.0'
|
||||||
|
- run: test -f cmd/main.go
|
||||||
|
if: '>=1.33.0'
|
||||||
|
|
Loading…
Reference in a new issue