sub domain deploy for branches 21
All checks were successful
Deploy App / build (push) Successful in 21s
Deploy App / deploy (push) Successful in 28s

This commit is contained in:
valere
2026-02-02 21:14:24 +01:00
parent dbd992854b
commit 8e78511738
2 changed files with 2 additions and 4 deletions

View File

@@ -12,9 +12,9 @@ jobs:
- name: Build app
run: |
bash ./.github/workflows/setup-env.sh
set -a && source .env && set +a
echo $APP_NAME
if [ -n "$APP_NAME" ]; then
set -a && source .env && set +a
bash /var/docker-web/src/cli.sh down "${APP_NAME}"
rm -rf "$APP_DIR"
mkdir "$APP_DIR"
@@ -37,8 +37,8 @@ jobs:
- name: Deploy
run: |
bash ./.github/workflows/setup-env.sh
set -a && source .env && set +a
echo $APP_NAME
if [ -n "$APP_NAME" ]; then
set -a && source .env && set +a
bash /var/docker-web/src/cli.sh up "${APP_NAME}"
fi

View File

@@ -30,5 +30,3 @@ changeEnvVar "DOMAIN" $DOMAIN
changeEnvVar "APP_NAME" $APP_NAME
changeEnvVar "PORT" $PORT
changeEnvVar "APP_DIR" "/var/docker-web/apps/$APP_NAME"
set -a && source .env && set +a