Add deployment workflow for production environment
All checks were successful
Deploy to Production / deploy (push) Successful in 5s

This commit is contained in:
Илья Глазунов 2025-12-05 13:31:00 +03:00
parent 94e699549d
commit ac9d24dac1

View File

@ -0,0 +1,24 @@
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