From: Guillaume Abrioux Date: Thu, 29 Feb 2024 10:53:55 +0000 (+0100) Subject: sync-images: write sync.yml in workspace X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=da6c15d68b3488cea07f134f8db37d8e2ebf0773;p=ceph-build.git sync-images: write sync.yml in workspace 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 --- diff --git a/sync-images/build/build b/sync-images/build/build index 4ef3b6c5..fe4b95b4 100644 --- a/sync-images/build/build +++ b/sync-images/build/build @@ -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 index b6a471a1..00000000 --- a/sync-images/build/sync.yml +++ /dev/null @@ -1,3 +0,0 @@ -docker.io: - images-by-tag-regex: - grafana/grafana: ^(9\.?|[0-9]{2,}\.?)([0-9]*\.?){1,}$