Skip to content

Commit 02e7ce1

Browse files
committed
fix multi-docker tag
1 parent 7d93966 commit 02e7ce1

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

airbyte_cdk/utils/docker.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,27 +78,27 @@ def _build_image(
7878
def _tag_image(
7979
tag: str,
8080
new_tags: list[str] | str,
81-
) -> str:
81+
) -> None:
8282
"""Build a Docker image for the specified architecture.
8383
8484
Returns the tag of the built image.
8585
"""
8686
if not isinstance(new_tags, list):
8787
new_tags = [new_tags]
8888

89-
print(f"Tagging image '{tag}' as: {', '.join(new_tags)}")
90-
docker_args = [
91-
"docker",
92-
"tag",
93-
tag,
94-
*new_tags,
95-
]
96-
_ = subprocess.run(
97-
docker_args,
98-
text=True,
99-
check=True,
100-
)
101-
return tag
89+
for new_tag in new_tags:
90+
print(f"Tagging image '{tag}' as: {new_tag}")
91+
docker_args = [
92+
"docker",
93+
"tag",
94+
tag,
95+
new_tag,
96+
]
97+
_ = subprocess.run(
98+
docker_args,
99+
text=True,
100+
check=True,
101+
)
102102

103103

104104
def build_connector_image(

0 commit comments

Comments
 (0)