mirror of
https://gitlab.sectorq.eu/jaydee/registry-utils.git
synced 2025-12-14 02:34:53 +01:00
lala
This commit is contained in:
@@ -70,14 +70,18 @@ def push_to_registry(data):
|
||||
#yaml_config["sync"].append({"source":f"{d[0]}","target": f"{local_registry}{d[0]}","type":"image","interval":interval,"backup": "\"backup-{{.Ref.Tag}}\""})
|
||||
cmnd = f"docker tag {d[0]} {local_registry}{d[0]}"
|
||||
input(cmnd)
|
||||
status, output = subprocess.getstatusoutput(cmnd)
|
||||
|
||||
#status, output = subprocess.getstatusoutput(cmnd)
|
||||
cmnd = f"docker push {local_registry}{d[0]} {local_registry}{d[0]}"
|
||||
input(cmnd)
|
||||
# status, output = subprocess.getstatusoutput(cmnd)
|
||||
|
||||
else:
|
||||
cmnd = f"docker tag {d[0]}:{d[1]} {local_registry}{d[0]}:{d[1]}"
|
||||
input(cmnd)
|
||||
status, output = subprocess.getstatusoutput(cmnd)
|
||||
|
||||
#status, output = subprocess.getstatusoutput(cmnd)
|
||||
cmnd = f"docker push {local_registry}{d[0]}:{d[1]} {local_registry}{d[0]}:{d[1]}"
|
||||
input(cmnd)
|
||||
#status, output = subprocess.getstatusoutput(cmnd)
|
||||
return
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user