Refactor image tags to be dynamic (#1120)
In order to simplify backporting and branching of new releases,
this patch relies on the Zuul branch when building images so
that we can easily branch out a new release and it will
automatically pick up the images.
diff --git a/build/pin-images.py b/build/pin-images.py
index d35ca65..8818f2c 100755
--- a/build/pin-images.py
+++ b/build/pin-images.py
@@ -129,12 +129,6 @@
parser.add_argument(
"dst", help="Path for output file", type=argparse.FileType("r+")
)
- parser.add_argument(
- "-r",
- "--registry",
- default="ghcr.io/vexxhost/atmosphere",
- help="Registry containing Atmosphere images",
- )
args = parser.parse_args()
@@ -145,15 +139,8 @@
if image in SKIP_IMAGE_LIST:
continue
- # NOTE(mnaser): If we're in CI, only pin the Atmosphere images
- if (
- "registry.atmosphere.dev" in args.registry
- and "ghcr.io/vexxhost/atmosphere" not in data["_atmosphere_images"][image]
- ):
- continue
-
image_src = data["_atmosphere_images"][image].replace(
- "ghcr.io/vexxhost/atmosphere", args.registry
+ "{{ atmosphere_release }}", data["atmosphere_release"]
)
pinned_image = get_pinned_image(image_src)