Add ci/cd

This commit is contained in:
roma-dxunvrs
2026-09-17 11:51:31 +03:00
parent 181e2528b6
commit b50a18a430
2 changed files with 22 additions and 4 deletions
+22
View File
@@ -0,0 +1,22 @@
name: deploy
on:
workflow_dispatch
jobs:
deploy:
name: Pull and Restart
runs-on: ubuntu-latest
steps:
- name: SSH
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SERVER_HOST }}
port: ${{ secrets.SERVER_PORT }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
cd /opt/quartz
git pull origin master
echo "${{ secrets.SERVER_SUDO_PASSWORD }}" | sudo -S docker compose down
echo "${{ secrets.SERVER_SUDO_PASSWORD }}" | sudo -S docker compose up -d --build