scaffold: add project CI and Docker templates under templates/project/_shared; update proposal and plan to include them
Some checks failed
ci / test (push) Has been cancelled
Some checks failed
ci / test (push) Has been cancelled
This commit is contained in:
12
templates/project/_shared/scripts/test.docker.sh
Normal file
12
templates/project/_shared/scripts/test.docker.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
here="$(cd "$(dirname "$0")" && pwd)"
|
||||
root="$(cd "$here/.." && pwd)"
|
||||
|
||||
compose_file="$root/docker/compose.yml"
|
||||
|
||||
echo "[docker] Running tests via docker compose"
|
||||
docker compose -f "$compose_file" up --build --abort-on-container-exit --remove-orphans
|
||||
docker compose -f "$compose_file" down -v --remove-orphans
|
||||
|
Reference in New Issue
Block a user