From fa4097413343543d9bc0acafd98985b44fc14f24 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Mon, 2 Oct 2023 13:23:05 -0300 Subject: [PATCH] +github.com/regclient/regclient (#3479) * +github.com/regclient/regclient * Split in three packages --- .../regclient/regclient/regbot/package.yml | 25 +++++++++++++++++ .../regclient/regclient/regctl/package.yml | 27 +++++++++++++++++++ .../regclient/regclient/regsync/package.yml | 25 +++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 projects/github.com/regclient/regclient/regbot/package.yml create mode 100644 projects/github.com/regclient/regclient/regctl/package.yml create mode 100644 projects/github.com/regclient/regclient/regsync/package.yml diff --git a/projects/github.com/regclient/regclient/regbot/package.yml b/projects/github.com/regclient/regclient/regbot/package.yml new file mode 100644 index 00000000..8883e686 --- /dev/null +++ b/projects/github.com/regclient/regclient/regbot/package.yml @@ -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 }}" diff --git a/projects/github.com/regclient/regclient/regctl/package.yml b/projects/github.com/regclient/regclient/regctl/package.yml new file mode 100644 index 00000000..b471af52 --- /dev/null +++ b/projects/github.com/regclient/regclient/regctl/package.yml @@ -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":' diff --git a/projects/github.com/regclient/regclient/regsync/package.yml b/projects/github.com/regclient/regclient/regsync/package.yml new file mode 100644 index 00000000..0bf76318 --- /dev/null +++ b/projects/github.com/regclient/regclient/regsync/package.yml @@ -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 }}"