chore: host bind mounts for data and leaner deploy job
PR — Ouverture automatique / create-pr (push) Successful in 2s
PR — Ouverture automatique / create-pr (push) Successful in 2s
Store MariaDB and media data on the host disk via CLOUD_DB_DIR and CLOUD_MEDIA_DIR (default ../db, ../media) instead of Docker named volumes, so they live on the big disk and survive 'down -v'. Drop the host 'make check' from the deploy job: the image builds already run tsc for every workspace, so no Node toolchain is needed on the runner.
This commit is contained in:
@@ -30,8 +30,9 @@ jobs:
|
|||||||
dir="${DEPLOY_DIR:-/srv/apps/cohaise-cloud/CoHaiSe-CLOUD}"
|
dir="${DEPLOY_DIR:-/srv/apps/cohaise-cloud/CoHaiSe-CLOUD}"
|
||||||
cd "$dir"
|
cd "$dir"
|
||||||
git pull --ff-only origin main
|
git pull --ff-only origin main
|
||||||
make check
|
# Le build des images compile et typecheck chaque workspace (tsc) :
|
||||||
make front
|
# aucune toolchain Node n'est requise sur l'hote.
|
||||||
docker compose build api nginx
|
docker compose build api nginx
|
||||||
|
make front
|
||||||
docker compose up -d api nginx
|
docker compose up -d api nginx
|
||||||
docker image prune -f
|
docker image prune -f
|
||||||
|
|||||||
Reference in New Issue
Block a user