]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
sync-images: write sync.yml in workspace 2210/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 29 Feb 2024 10:53:55 +0000 (11:53 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 29 Feb 2024 10:53:55 +0000 (11:53 +0100)
I might be lacking JJB expertise but this is the only
way I could figure out in order to get `sync.yml` in the
workspace.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
sync-images/build/build
sync-images/build/sync.yml [deleted file]

index 4ef3b6c5498f8d60032629b2d04d3ff6eb0ff7e6..fe4b95b4442d56a5b8484385d96ebfbb084b71fb 100644 (file)
@@ -4,4 +4,10 @@ set -e
 # shellcheck disable=SC2034
 WORKDIR=$(mktemp -td tox.XXXXXXXXXX)
 
+cat << EOF > ./sync.yml
+docker.io:
+  images-by-tag-regex:
+    grafana/grafana: ^(9\.?|[0-9]{2,}\.?)([0-9]*\.?){1,}$
+EOF
+
 podman run --rm -v ./sync.yml:/sync.yml quay.io/skopeo/stable sync --src yaml --dest docker /sync.yml "${DEST_REGISTRY}" --dest-username "${DEST_USERNAME}" --dest-password "${DEST_PASSWORD}"
diff --git a/sync-images/build/sync.yml b/sync-images/build/sync.yml
deleted file mode 100644 (file)
index b6a471a..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-docker.io:
-  images-by-tag-regex:
-    grafana/grafana: ^(9\.?|[0-9]{2,}\.?)([0-9]*\.?){1,}$