Skip to content

Commit eae9f39

Browse files
authored
Force to preserve digests for base image
1 parent f2ed372 commit eae9f39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ddiff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def push_images(tags, from_docker_hub=False):
224224
registry_tag = f"{ddiff_url_base}/{_prepare_tag(host_tag)}"
225225
if push_pull_with_skopeo:
226226
run_command(
227-
f"skopeo copy --dest-tls-verify=false --format=v2s2 "
227+
f"skopeo copy --dest-tls-verify=false --format=v2s2 {'--preserve-digests' if from_docker_hub else ''}"
228228
f"{_skopeo_source_ref(host_tag, from_docker_hub=from_docker_hub)} docker://{registry_tag}"
229229
)
230230
else:

0 commit comments

Comments
 (0)