fix: allow graceful runner shutdown during stack maintenance
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# Operate only this repository's runner stack, from any working directory.
|
||||
set -euo pipefail
|
||||
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
|
||||
if [ "$#" -eq 0 ]; then
|
||||
printf 'Usage: %s <compose arguments>\n' "$0" >&2
|
||||
printf 'Apply while idle: stop, then up -d --force-recreate\n' >&2
|
||||
exit 2
|
||||
fi
|
||||
exec docker compose -f docker-compose.yml "$@"
|
||||
Reference in New Issue
Block a user