-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (33 loc) · 1004 Bytes
/
deploy.yml
File metadata and controls
38 lines (33 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Deploy Bot
on:
push:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: rsync deployments
uses: burnett01/rsync-deployments@5.2
with:
switches: -avzr
path: .
remote_path: ${{ secrets.DEPLOY_PATH }}
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }}
- name: restart service
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
script: |
# systemctl --user restart goalkeepr_worker
# systemctl --user restart goalkeepr
cd /data
# at lx
#podman-compose down gk
#podman-compose up -d gk
# at eu
docker compose build gk
docker compose up -d gk