Files
nuxtci/.github/workflows/deploy.yml
valere 627fa78953
Some checks failed
Deploy App / test (push) Failing after 19s
Deploy App / deploy (push) Has been skipped
test
2025-09-19 20:48:55 +02:00

32 lines
832 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: Install pnpm
run: npm install -g pnpm eslint
- name: Run linter
run: pnpm run eslint
deploy:
runs-on: ubuntu-22.04
needs: test
container:
image: node:20-alpine
volumes:
- /var/docker-web:/var/docker-web
steps:
- uses: actions/checkout@v4
- name: Deploy with docker-web
run: |
APP_DIR="/var/docker-web/apps/${GITHUB_REPOSITORY##*/}"
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 up "${GITHUB_REPOSITORY##*/}"