fix(olhar): deploy.sh utilise le compose du repo cloné
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+6
-14
@@ -15,19 +15,11 @@ else
|
||||
git clone --branch develop --depth 1 "${REPO_URL}" "${BUILD_DIR}"
|
||||
fi
|
||||
|
||||
# ── 2. Build des images ───────────────────────────────────────────────────────
|
||||
echo "▶ Build de l'image API..."
|
||||
docker build \
|
||||
-t git.goutailler-olivier.com/gato/olhar-api:latest \
|
||||
"${BUILD_DIR}/backend"
|
||||
|
||||
echo "▶ Build de l'image PWA..."
|
||||
docker build \
|
||||
-t git.goutailler-olivier.com/gato/olhar-pwa:latest \
|
||||
"${BUILD_DIR}/webapp"
|
||||
|
||||
# ── 3. Démarrage du stack ─────────────────────────────────────────────────────
|
||||
echo "▶ Démarrage du stack..."
|
||||
docker compose -f "${SCRIPT_DIR}/docker-compose.yml" up -d
|
||||
# ── 2. Build & démarrage du stack ────────────────────────────────────────────
|
||||
echo "▶ Build des images et démarrage du stack..."
|
||||
docker compose \
|
||||
-f "${BUILD_DIR}/docker-compose.yml" \
|
||||
--env-file "${SCRIPT_DIR}/.env" \
|
||||
up --build -d
|
||||
|
||||
echo "✓ Stack démarré."
|
||||
|
||||
Reference in New Issue
Block a user