Skip to content

Commit

Permalink
add skopeo to managed utilities (#1915)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
  • Loading branch information
wagoodman committed Jun 6, 2024
1 parent cc5ca8b commit e5b341b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .binny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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=""
2 changes: 1 addition & 1 deletion test/integration/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit e5b341b

Please sign in to comment.