mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
ci/cd - add docker system prune
This commit is contained in:
parent
72caf907a0
commit
8f44e108bb
|
@ -6,6 +6,7 @@ from os import getcwd, _exit
|
|||
from os.path import isfile
|
||||
from traceback import format_exc
|
||||
from json import loads
|
||||
from subprocess import run
|
||||
path.append(getcwd() + "/utils")
|
||||
path.append(getcwd() + "/tests")
|
||||
|
||||
|
@ -26,6 +27,8 @@ if not test_type in ["linux", "docker", "autoconf", "swarm", "kubernetes", "ansi
|
|||
log("TESTS", "❌", "Wrong type argument " + test_type)
|
||||
exit(1)
|
||||
|
||||
run("docker system prune", shell=True)
|
||||
|
||||
log("TESTS", "ℹ️", "Starting tests for " + test_type + " ...")
|
||||
ret = False
|
||||
end_fun = None
|
||||
|
@ -98,3 +101,5 @@ if not ret :
|
|||
exit(1)
|
||||
|
||||
log("TESTS", "ℹ️", "All tests finished for " + test_type + " !")
|
||||
|
||||
run("docker system prune", shell=True)
|
Loading…
Reference in a new issue