From a0fce1a8d3b60b62f44d0cd14e8422a1923ddbbf Mon Sep 17 00:00:00 2001 From: valere Date: Mon, 2 Feb 2026 20:50:38 +0100 Subject: [PATCH] sub domain deploy for branches 1( --- .github/workflows/deploy.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f64782c..1a69cd3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,10 +9,9 @@ jobs: - /var/docker-web:/var/docker-web steps: - uses: actions/checkout@v4 - - name: Setup environment - run: ./.github/workflows/setup-env.sh - name: Build app run: | + bash ./.github/workflows/setup-env.sh [ -n "$APP_NAME" ] && bash /var/docker-web/src/cli.sh down "${APP_NAME}" rm -rf "$APP_DIR" mkdir "$APP_DIR" @@ -29,9 +28,8 @@ jobs: - /var/docker-web:/var/docker-web steps: - uses: actions/checkout@v4 - - name: Setup environment - run: ./.github/workflows/setup-env.sh - name: Deploy run: | + bash ./.github/workflows/setup-env.sh set -a && source .env && set +a [ -n "$APP_NAME" ] && bash /var/docker-web/src/cli.sh up "${APP_NAME}"