From dc01d5c886df7dcdd7cb91af3928667f0d3eba44 Mon Sep 17 00:00:00 2001 From: Alexander Stepchenko Date: Tue, 18 Jul 2023 13:24:02 +0300 Subject: [PATCH] fix: copy the dictionary instead of the link to it This prevents appending the same tag multiple times. --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index 9e5d4f7..92bc66c 100755 --- a/build.py +++ b/build.py @@ -55,7 +55,7 @@ class Tags: if self._tags is None: tags = [branch] else: - tags = self._tags[image.canonical_name][branch] + tags = self._tags[image.canonical_name][branch].copy() if branch == self._latest: tags.append("latest") return tags