Илья Глазунов ac9d24dac1
All checks were successful
Deploy to Production / deploy (push) Successful in 5s
Add deployment workflow for production environment
2025-12-05 13:31:00 +03:00

25 lines
571 B
YAML

name: Deploy to Production
on:
push:
branches:
- master
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to VDS
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.VDS_SERVER }}
username: ${{ secrets.VDS_USER }}
key: ${{ secrets.VDS_SSH_KEY }}
port: ${{ secrets.VDS_SSH_PORT || 22 }}
script: |
cd ${{ secrets.PROJECT_DIRECTORY }}
git fetch origin
git pull origin master
docker compose up -d --build