Avoid ghcr.io tag if no_push

This commit is contained in:
Joshua M. Boniface 2024-03-18 12:15:07 -04:00
parent 027db4a953
commit 5295c46936

View File

@ -354,8 +354,9 @@ def build_docker(
)
images_hub.append(imagename)
os.system(f"docker image tag {imagename} ghcr.io/{imagename}")
images_ghcr.append(f"ghcr.io/{imagename}")
if not no_push:
os.system(f"docker image tag {imagename} ghcr.io/{imagename}")
images_ghcr.append(f"ghcr.io/{imagename}")
log("")