account for deployed not being defined
Some checks failed
Deploy Containers / Prepare (push) Failing after 3s
Some checks failed
Deploy Containers / Prepare (push) Failing after 3s
This commit is contained in:
@@ -79,13 +79,13 @@ def main():
|
|||||||
subprocess.run("/usr/bin/docker image prune -f", shell=True)
|
subprocess.run("/usr/bin/docker image prune -f", shell=True)
|
||||||
subprocess.run("/usr/bin/docker container prune -f", shell=True)
|
subprocess.run("/usr/bin/docker container prune -f", shell=True)
|
||||||
|
|
||||||
if deployed:
|
if deployed and len(new_diff) > 0:
|
||||||
print("\n---------------------")
|
print("\n---------------------")
|
||||||
print(" Deployment succeeded!")
|
print(" Deployment succeeded!")
|
||||||
print(f" All tasks: {', '.join(new_diff)}")
|
print(f" All tasks: {', '.join(new_diff)}")
|
||||||
print("---------------------\n")
|
print("---------------------\n")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
elif not deployed:
|
elif not deployed and len(new_diff) > 0:
|
||||||
print("\n---------------------")
|
print("\n---------------------")
|
||||||
print(" Deployment failed!")
|
print(" Deployment failed!")
|
||||||
print(f" All tasks: {', '.join(new_diff)}")
|
print(f" All tasks: {', '.join(new_diff)}")
|
||||||
|
|||||||
Reference in New Issue
Block a user