feat: add Gitea Actions CI/CD workflows
Some checks failed
CI / build-and-test (push) Has been cancelled

This commit is contained in:
sokol
2026-02-20 10:29:22 +03:00
parent 7e1f7dd24c
commit 083d7dd662
4 changed files with 245 additions and 0 deletions

View File

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