Files
nuxtci/.github/workflows/deploy.yml
valere 35155f4054
All checks were successful
Deploy App / test (push) Successful in 9s
Deploy App / deploy (push) Successful in 17s
test
2025-09-19 23:49:43 +02:00

30 lines
812 B
YAML

name: Deploy App
on: [push]
jobs:
test:
runs-on: ubuntu-22.04
container:
image: node:20-alpine
steps:
- uses: actions/checkout@v4
- name: test
run: echo "write your test here"
deploy:
runs-on: ubuntu-22.04
container:
volumes:
- /var/docker-web:/var/docker-web
steps:
- uses: actions/checkout@v4
- name: Deploy with docker-web
run: |
REPO_NAME="${GITHUB_REPOSITORY##*/}"
APP_DIR="/var/docker-web/apps/${REPO_NAME}"
mkdir -p "$APP_DIR"
cp -a $(find . -mindepth 1 -maxdepth 1 ! -name '.git' ! -name 'node_modules') "$APP_DIR/"
export COMPOSE_BAKE=false
bash /var/docker-web/src/cli.sh down "${REPO_NAME}"
bash /var/docker-web/src/cli.sh up "${REPO_NAME}"