Files
configucci/.gitea/workflows/deploy.yml
sokol 083d7dd662
Some checks failed
CI / build-and-test (push) Has been cancelled
feat: add Gitea Actions CI/CD workflows
2026-02-20 10:29:22 +03:00

29 lines
638 B
YAML

name: Deploy to Server
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy via SSH
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_KEY }}
port: ${{ secrets.DEPLOY_PORT || 22 }}
script: |
cd /opt/configucci
git pull origin main
docker-compose pull
docker-compose up -d
docker system prune -f