From 4edc99269d4c5d5112de354120d84a036574d6b4 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 25 Jun 2024 13:30:05 +0200 Subject: [PATCH] sync-images: sync nginx images 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 --- sync-images/build/build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sync-images/build/build b/sync-images/build/build index a0751f66..aea6862f 100644 --- a/sync-images/build/build +++ b/sync-images/build/build @@ -6,8 +6,10 @@ WORKDIR=$(mktemp -td tox.XXXXXXXXXX) 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}" -- 2.39.5