Move template to template/ dir, add CI workflow, use pre-built image
This commit is contained in:
13
template/destroy.sh
Executable file
13
template/destroy.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
_check_required_env_vars "CONTAINER_NAME" "DATA_VOLUME"
|
||||
|
||||
echo "WARNING: This will PERMANENTLY DELETE all data for ${CONTAINER_NAME}"
|
||||
|
||||
docker compose -p "${CONTAINER_NAME}" down 2>/dev/null || true
|
||||
_remove_volume "$DATA_VOLUME"
|
||||
|
||||
echo "Service and all data destroyed"
|
||||
Reference in New Issue
Block a user