From 330a08c8761bc6747e8144694969f33a3937d02a Mon Sep 17 00:00:00 2001 From: eaudetcobello Date: Mon, 27 May 2024 10:25:22 -0400 Subject: [PATCH] Use current dir in config file path --- build-scripts/hack/sync-registry-config.yaml | 4 ++++ build-scripts/hack/sync-registry.sh | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/build-scripts/hack/sync-registry-config.yaml b/build-scripts/hack/sync-registry-config.yaml index b2948eb9f..1656ebb41 100644 --- a/build-scripts/hack/sync-registry-config.yaml +++ b/build-scripts/hack/sync-registry-config.yaml @@ -1,3 +1,7 @@ registry.k8s.io: images-by-semver: pause: "= 3.7" + +quay.io: + images-by-semver: + skopeo/stable: "= v1.15.0" diff --git a/build-scripts/hack/sync-registry.sh b/build-scripts/hack/sync-registry.sh index 4c7009d5b..96562e20e 100755 --- a/build-scripts/hack/sync-registry.sh +++ b/build-scripts/hack/sync-registry.sh @@ -1,6 +1,9 @@ #!/bin/bash -docker run -v "./sync-registry-config.yaml":/config.yaml ghcr.io/canonical/stable:1.15.0 sync \ +DIR=`realpath $(dirname "${0}")` +echo "DIR: $DIR" + +docker run -v "$DIR/sync-registry-config.yaml":/config.yaml ghcr.io/canonical/stable:1.15.0 sync \ --src yaml \ --dest docker \ /config.yaml ghcr.io/canonical \