+github.com/regclient/regclient (#3479)

* +github.com/regclient/regclient

* Split in three packages
This commit is contained in:
Felipe Santos 2023-10-02 13:23:05 -03:00 committed by GitHub
parent 4fa1a85aff
commit fa40974133
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 77 additions and 0 deletions

View file

@ -0,0 +1,25 @@
distributable:
url: git+https://github.com/regclient/regclient
ref: v{{ version }}
versions:
github: regclient/regclient/releases/tags
provides:
- bin/regbot
dependencies:
curl.se/ca-certs: '*'
build:
dependencies:
go.dev: ^1.21
git-scm.org: '*'
script: |
make bin/regbot
mkdir -p '{{ prefix }}/bin'
mv -f ./bin/regbot '{{ prefix }}/bin'
test:
script: |
regbot version | tee /dev/stderr | grep -q -w "v{{ version }}"

View file

@ -0,0 +1,27 @@
distributable:
url: git+https://github.com/regclient/regclient
ref: v{{ version }}
versions:
github: regclient/regclient/releases/tags
provides:
- bin/regctl
dependencies:
curl.se/ca-certs: '*'
build:
dependencies:
go.dev: ^1.21
git-scm.org: '*'
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":'

View file

@ -0,0 +1,25 @@
distributable:
url: git+https://github.com/regclient/regclient
ref: v{{ version }}
versions:
github: regclient/regclient/releases/tags
provides:
- bin/regsync
dependencies:
curl.se/ca-certs: '*'
build:
dependencies:
go.dev: ^1.21
git-scm.org: '*'
script: |
make bin/regsync
mkdir -p '{{ prefix }}/bin'
mv -f ./bin/regsync '{{ prefix }}/bin'
test:
script: |
regsync version | tee /dev/stderr | grep -q -w "v{{ version }}"