Make better use of Docker cache on failed builds
This commit is contained in:
parent
aee2a82abc
commit
5592a92c1b
|
@ -11,7 +11,6 @@ import tempfile
|
|||
import time
|
||||
|
||||
subprocess.run(["docker", "pull", "ubuntu:rolling"], check=True)
|
||||
subprocess.run(["docker", "system", "prune", "-f"], check=True)
|
||||
subprocess.run(["make", "image-prod"], check=True)
|
||||
existing_containers = subprocess.run(
|
||||
["docker", "ps", "-q"], check=True, stdout=subprocess.PIPE
|
||||
|
@ -21,5 +20,6 @@ if existing_containers:
|
|||
subprocess.run(["docker", "kill", *existing_containers], check=True)
|
||||
subprocess.run(["systemctl", "enable", "riju"], check=True)
|
||||
subprocess.run(["systemctl", "restart", "riju"], check=True)
|
||||
subprocess.run(["docker", "system", "prune", "-f"], check=True)
|
||||
|
||||
print("==> Successfully deployed Riju! <==", file=sys.stderr)
|
||||
|
|
Loading…
Reference in New Issue