This commit is contained in:
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
@@ -13,16 +13,20 @@ jobs:
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-22.04
|
||||
needs: test
|
||||
container:
|
||||
image: node:20
|
||||
volumes:
|
||||
- /var/docker-web:/var/docker-web
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install deps
|
||||
run: npm install -g pnpm && pnpm install --frozen-lockfile
|
||||
- name: Build Nuxt
|
||||
run: pnpm build
|
||||
- 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/"
|
||||
cp -a .output/* "$APP_DIR/"
|
||||
export COMPOSE_BAKE=false
|
||||
bash /var/docker-web/src/cli.sh up "${GITHUB_REPOSITORY##*/}"
|
||||
|
||||
Reference in New Issue
Block a user