sql #33

Open
valere wants to merge 34 commits from sql into master
Showing only changes of commit 4ff3da8380 - Show all commits

View File

@@ -12,14 +12,16 @@ jobs:
- name: Build app
run: |
bash ./.github/workflows/setup-env.sh
if [ -n "$APP_NAME" ]; then
set -a && source .env && set +a
[ -n "$APP_NAME" ] && bash /var/docker-web/src/cli.sh down "${APP_NAME}"
bash /var/docker-web/src/cli.sh down "${APP_NAME}"
rm -rf "$APP_DIR"
mkdir "$APP_DIR"
cp -a $(find . -mindepth 1 -maxdepth 1 ! -name '.git' ! -name 'node_modules') "$APP_DIR/"
export COMPOSE_BAKE=false
docker rmi "local/${APP_NAME}" 2>/dev/null || true
[ -n "$APP_NAME" ] && bash /var/docker-web/src/cli.sh build "${APP_NAME}"
bash /var/docker-web/src/cli.sh build "${APP_NAME}"
fi
deploy:
runs-on: ubuntu-22.04
@@ -32,5 +34,7 @@ jobs:
- name: Deploy
run: |
bash ./.github/workflows/setup-env.sh
if [ -n "$APP_NAME" ]; then
set -a && source .env && set +a
[ -n "$APP_NAME" ] && bash /var/docker-web/src/cli.sh up "${APP_NAME}"
bash /var/docker-web/src/cli.sh up "${APP_NAME}"
fi