fix(regclient)

closes #4589
This commit is contained in:
Jacob Heider 2023-12-24 15:15:04 -05:00
parent 154063c107
commit f1298854ec
No known key found for this signature in database
GPG key ID: 59D15ADC7DCD39BB

View file

@ -15,13 +15,15 @@ build:
dependencies:
go.dev: ^1.21
git-scm.org: '*'
script: |
make bin/regctl
mkdir -p '{{ prefix }}/bin'
mv -f ./bin/regctl '{{ prefix }}/bin'
script:
- make bin/regctl
- mkdir -p '{{ prefix }}/bin'
- mv -f ./bin/regctl '{{ prefix }}/bin'
test:
script: |
regctl version | tee /dev/stderr | grep -q -w "v{{ version }}"
regctl image inspect hello-world --platform linux/amd64 | tee /dev/stderr | grep -q -w '"Image":'
- 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":'
if: <0.5.6
- run: cat "$OUT" | grep -q -w '"/hello"'
if: '>=0.5.6'