add skopeo to managed utilities (#1915)

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Alex Goodman 2024-06-06 14:58:34 -04:00 committed by GitHub
parent cc5ca8b28c
commit e5b341b87a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 2 deletions

View file

@ -2,7 +2,7 @@ tools:
# we want to use a pinned version of binny to manage the toolchain (so binny manages itself!)
- name: binny
version:
want: v0.7.0
want: v0.8.0
method: github-release
with:
repo: anchore/binny
@ -102,3 +102,18 @@ tools:
method: github-release
with:
repo: cli/cli
# used for integration tests
- name: skopeo
version:
want: v1.12.0
method: go-install
with:
module: github.com/containers/skopeo
entrypoint: cmd/skopeo
args:
- "-tags"
- containers_image_openpgp
env:
- CGO_ENABLED=0
- GO_DYN_FLAGS=""

View file

@ -49,7 +49,7 @@ func PullThroughImageCache(t testing.TB, imageName string) string {
func saveImage(t testing.TB, imageName string, destPath string) {
sourceImage := fmt.Sprintf("docker://docker.io/%s", imageName)
destinationString := fmt.Sprintf("docker-archive:%s", destPath)
skopeoPath := filepath.Join(repoRoot(t), ".tmp", "skopeo")
skopeoPath := filepath.Join(repoRoot(t), ".tool", "skopeo")
policyPath := filepath.Join(repoRoot(t), "test", "integration", "test-fixtures", "skopeo-policy.json")
skopeoCommand := []string{