Files
nuxtci/.github/workflows/deploy.yml
valere dcf19a7045
Some checks failed
Deploy App / test (push) Successful in 6s
Deploy App / deploy (push) Failing after 7s
edit
2025-09-19 20:38:56 +02:00

29 lines
738 B
YAML

name: Deploy App
on: [push]
jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Dummy test
run: echo "Tests OK"
deploy:
runs-on: ubuntu-22.04
needs: test
container:
image: alpine:3.20 # choisis une image si tu veux un container isolé
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##*/}"