mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
154063c107
commit
f1298854ec
1 changed files with 10 additions and 8 deletions
|
@ -15,13 +15,15 @@ build:
|
||||||
dependencies:
|
dependencies:
|
||||||
go.dev: ^1.21
|
go.dev: ^1.21
|
||||||
git-scm.org: '*'
|
git-scm.org: '*'
|
||||||
script: |
|
script:
|
||||||
make bin/regctl
|
- make bin/regctl
|
||||||
mkdir -p '{{ prefix }}/bin'
|
- mkdir -p '{{ prefix }}/bin'
|
||||||
mv -f ./bin/regctl '{{ prefix }}/bin'
|
- mv -f ./bin/regctl '{{ prefix }}/bin'
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script: |
|
- regctl version | tee /dev/stderr | grep -q -w "v{{ version }}"
|
||||||
regctl version | tee /dev/stderr | grep -q -w "v{{ version }}"
|
- OUT="$(regctl image inspect hello-world --platform linux/amd64)"
|
||||||
|
- run: cat "$OUT" | grep -q -w '"Image":'
|
||||||
regctl image inspect hello-world --platform linux/amd64 | tee /dev/stderr | grep -q -w '"Image":'
|
if: <0.5.6
|
||||||
|
- run: cat "$OUT" | grep -q -w '"/hello"'
|
||||||
|
if: '>=0.5.6'
|
||||||
|
|
Loading…
Reference in a new issue