Skip to content

Commit dc2c564

Browse files
committed
Add docker tagging step
1 parent e7860fa commit dc2c564

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/scripts/push_container_images_wave.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,22 @@ def push_image_apptainer(source_image_file, image_url):
4343
subprocess.run(apptainer_push_cmd)
4444

4545

46-
def push_image_docker(image_url):
46+
def tag_image_docker(source_image_url, dest_image_url):
4747
"""
4848
"""
49+
docker_tag_cmd = [
50+
"docker",
51+
"tag",
52+
source_image_url,
53+
dest_image_url
54+
]
55+
subprocess.run(docker_tag_cmd)
56+
4957

58+
def push_image_docker(image_url):
59+
"""
60+
"""
61+
tag =
5062
docker_push_cmd = [
5163
"docker",
5264
"push",
@@ -80,6 +92,7 @@ def main(args):
8092
push_image_apptainer(pull_destination, push_image_url)
8193
else:
8294
pull_image_docker(pull_image_url)
95+
tag_image_docker(pull_image_url, push_image_url)
8396
push_image_docker(push_image_url)
8497

8598

0 commit comments

Comments
 (0)