This commit makes the job sync nginx images from docker.io
to quay.io
Also, two changes:
- This makes sure the latest stable image of skopeo is pulled from quay.io
- Use the filter 'by-semver' filter for grafana too.
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
cat << EOF > ./sync.yml
docker.io:
- images-by-tag-regex:
- grafana/grafana: ^(9\.?|[0-9]{2,}\.?)([0-9]*\.?){1,}$
+ images-by-semver:
+ nginx: ">= 1.26.0"
+ grafana/grafana: ">= 9.0.0"
EOF
-
+# make sure we pull the last stable image
+podman pull quay.io/skopeo/stable
podman run --rm --security-opt label=disable -v ./sync.yml:/sync.yml:ro quay.io/skopeo/stable sync --src yaml --dest docker /sync.yml "${DEST_REGISTRY}" --dest-username "${DEST_USERNAME}" --dest-password "${DEST_PASSWORD}"