]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
sync-images: sync nginx images 2258/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 25 Jun 2024 11:30:05 +0000 (13:30 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 25 Jun 2024 11:53:00 +0000 (13:53 +0200)
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>
sync-images/build/build

index a0751f668b192c627affd6fb8c2fd41bf9a0a529..aea6862fbd2878fcfa55fa269460bbf25bb6b3c9 100644 (file)
@@ -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}"