Files
nuxtci/.github/workflows/deploy.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 16: mapping key "run" already defined at line 15
valere 586d1e5ff1 test
2025-09-19 22:26:41 +02:00

36 lines
909 B
YAML

name: Deploy App
on: [push]
env:
APP_DIR_NAME: ${{ github.repository_name }}
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
run: echo $APP_DIR_NAME
deploy:
runs-on: ubuntu-22.04
container:
image: docker:dind
volumes:
- /var/docker-web:/var/docker-web
steps:
- uses: actions/checkout@v4
with:
path: ${{ env.APP_DIR_NAME }}
- name: Deploy with docker-web
run: |
APP_DIR="/var/docker-web/apps/${GITHUB_REPOSITORY##*/}"
mkdir -p "$APP_DIR"
cp -a .output/* "$APP_DIR/"
export COMPOSE_BAKE=false
bash /var/docker-web/src/cli.sh down "${GITHUB_REPOSITORY##*/}"
bash /var/docker-web/src/cli.sh up "${GITHUB_REPOSITORY##*/}"