Move template to template/ dir, add CI workflow, use pre-built image
Some checks failed
Build-Publish / build (linux/amd64) (push) Successful in 13s
Build-Publish / build (linux/arm64) (push) Successful in 40s
Build-Publish / create-manifest (push) Failing after 1s

This commit is contained in:
j
2026-03-07 19:54:06 +13:00
parent d8754a9d92
commit 070cca7c8d
17 changed files with 89 additions and 13 deletions

11
template/start.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/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"
docker volume create "${DATA_VOLUME}" 2>/dev/null || true
docker compose -p "${CONTAINER_NAME}" up -d || _die "Failed to start services"
echo "${CONTAINER_NAME} started"