ci: enable auto-deploy on main branch push, use docker compose v2
Build and Deploy / deploy (push) Has been cancelled
Build and Deploy / build (push) Has been cancelled

This commit is contained in:
2026-07-17 00:07:09 +00:00
parent 3b45e76a7b
commit 6500719689
+3 -3
View File
@@ -47,7 +47,6 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Deploy to server
uses: appleboy/ssh-action@v1.0.3
@@ -55,7 +54,8 @@ jobs:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT || 22 }}
script: |
cd /opt/anticaptcha
docker-compose pull
docker-compose up -d
docker compose pull
docker compose up -d