Skip to content

Commit d7d930f

Browse files
committed
ci: Tag multiarch images on GHCR too
1 parent 7171610 commit d7d930f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

misc/python/materialize/mzbuild.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,6 +1471,19 @@ def publish_multiarch_images(
14711471
]
14721472
)
14731473
spawn.runv(["docker", "manifest", "push", name])
1474+
1475+
ghcr_prefix = "ghcr.io/materializeinc"
1476+
ghcr_name = f"{ghcr_prefix}/{name}"
1477+
spawn.runv(
1478+
[
1479+
"docker",
1480+
"manifest",
1481+
"create",
1482+
ghcr_name,
1483+
*(f"{ghcr_prefix}/{image.spec()}" for image in images),
1484+
]
1485+
)
1486+
spawn.runv(["docker", "manifest", "push", ghcr_name])
14741487
print(f"--- Nofifying for tag {tag}")
14751488
markdown = f"""Pushed images with Docker tag `{tag}`"""
14761489
spawn.runv(

0 commit comments

Comments
 (0)