From ea1e3b074c86dfb0fd88046351febc3ec0e961d2 Mon Sep 17 00:00:00 2001 From: tristan Date: Wed, 18 Mar 2026 15:25:13 +0100 Subject: [PATCH] =?UTF-8?q?fix=20:=20script=20de=20d=C3=A9ploiement=20+=20?= =?UTF-8?q?CI/CD=20build=20de=20l'app?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/release-artefact.yml | 2 +- .idea/workspace.xml | 30 +++++++++++++-------------- scripts/deploy-release.sh | 8 ++----- 3 files changed, 17 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/release-artefact.yml b/.gitea/workflows/release-artefact.yml index dc02acf..c0d6102 100644 --- a/.gitea/workflows/release-artefact.yml +++ b/.gitea/workflows/release-artefact.yml @@ -36,7 +36,7 @@ jobs: run: | cd frontend npm ci - CI=1 NUXT_TELEMETRY_DISABLED=1 NUXT_PUBLIC_API_BASE=/api NUXT_PUBLIC_APP_BASE=/ npm run generate + CI=1 NUXT_TELEMETRY_DISABLED=1 NUXT_PUBLIC_API_BASE=/api NUXT_PUBLIC_APP_BASE=/ NUXT_PUBLIC_GEO_API_BASE=https://geo.api.gouv.fr npm run generate test -f .output/public/index.html - name: Build artefact diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9192270..78c4c30 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,11 +4,9 @@ - @@ -792,7 +789,8 @@ - diff --git a/scripts/deploy-release.sh b/scripts/deploy-release.sh index bc38aae..5933c94 100644 --- a/scripts/deploy-release.sh +++ b/scripts/deploy-release.sh @@ -75,9 +75,5 @@ chmod o+rx "$(dirname "$DEPLOY_DIR")" "$DEPLOY_DIR" 2>/dev/null || true echo "Release ${TAG} deployed to ${DEPLOY_DIR}" -if [ -f "${DEPLOY_DIR}/.env.local" ]; then - echo "Running migrations (if any)..." - php "${DEPLOY_DIR}/bin/console" doctrine:migrations:migrate --no-interaction --env=prod -else - echo "Skip migrations: ${DEPLOY_DIR}/.env.local not found" >&2 -fi +echo "Running migrations (if any)..." +php "${DEPLOY_DIR}/bin/console" doctrine:migrations:migrate --no-interaction --env=prod