Skip to content

feat: make deploy dir for each app #1

feat: make deploy dir for each app

feat: make deploy dir for each app #1

Workflow file for this run

name: Deploy next.js-practical-cases
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.actor }}/large-file-upload:latest
DOCKERFILE: ./deploy/Dockerfile
jobs:
deploy:
name: Deploy Image
runs-on: ubuntu-latest
steps:
- name: Deploy to VPS
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USER }}
key: ${{ secrets.VPS_SSH_KEY }}
port: ${{ secrets.VPS_PORT }}
script: |
cd ${{ secrets.VPS_WORK_DIR }}
git pull --rebase
bash ./deploy.sh
exit