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>
# 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}"
+++ /dev/null
-docker.io:
- images-by-tag-regex:
- grafana/grafana: ^(9\.?|[0-9]{2,}\.?)([0-9]*\.?){1,}$