Record source revisions and stopped containers in pipeline evidence
This commit is contained in:
@@ -53,6 +53,11 @@ def stop(service):
|
||||
check=True,
|
||||
).stdout.strip()
|
||||
say(f"$ docker compose stop -t 10 {service} -> {seconds:.1f} s, exit code {code}")
|
||||
say(
|
||||
compose(
|
||||
"ps", "-a", "--format", "{{.Name}} {{.ID}} {{.State}} {{.Status}}", service
|
||||
).rstrip()
|
||||
)
|
||||
check(seconds <= 10 and code == "0", f"{service} did not stop cleanly on SIGTERM")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user