sub domain deploy for branches 12
All checks were successful
Deploy App / build (push) Successful in 11s
Deploy App / deploy (push) Successful in 10s

This commit is contained in:
valere
2026-02-02 20:37:23 +01:00
parent 75507452ac
commit 0b709ff0dc
2 changed files with 2 additions and 28 deletions

View File

@@ -21,7 +21,7 @@ BRANCH_NAME=$GITHUB_REF_NAME
# Configuration pour les branches non-principales
if [ "$BRANCH_NAME" != "main" ] && [ "$BRANCH_NAME" != "master" ]; then
DOMAIN="$BRANCH_NAME.$DOMAIN"
APP_NAME="$BRANCH_NAME_$APP_NAME"
APP_NAME="${BRANCH_NAME}_${APP_NAME}"
PORT=$(bash /var/docker-web/src/cli.sh ALLOCATE_PORT)
sed -i "s|${GITHUB_REPOSITORY##*/}|$APP_NAME|g" docker-compose.yml
fi
@@ -32,5 +32,5 @@ changeEnvVar "PORT" $PORT
changeEnvVar "APP_DIR" "/var/docker-web/apps/$APP_NAME"
set -a && source .env && set +a
cat .env
cat docker-compose.yml
echo $APP_NAME