-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (24 loc) · 796 Bytes
/
Copy pathdeploy.yml
File metadata and controls
27 lines (24 loc) · 796 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
name: Deploy using SSH and Docker Compose
on:
workflow_call:
workflow_dispatch:
jobs:
deploy:
name: Run ssh command on host machine
runs-on: ubuntu-latest
environment: deploy
steps:
- name: Tailscale
uses: tailscale/github-action@v4
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:wrx-sh-ci
- name: Run ssh deploy command
run: |
ssh -o StrictHostKeyChecking=no root@yorgos "
podman pull ghcr.io/wonrax/wrx-sh-api:latest \
ghcr.io/wonrax/wrx-sh-www:latest \
ghcr.io/wonrax/wrx-sh-migrator:latest
systemctl restart podman-compose-wrx-sh-root.target
"