Skip to content

Commit 3db4d38

Browse files
authored
Create deploy.yml
1 parent 22c3d66 commit 3db4d38

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy UltimateAuth
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Deploy via SSH
15+
uses: appleboy/ssh-action@v1.0.3
16+
with:
17+
host: ${{ secrets.SERVER_HOST }}
18+
username: ${{ secrets.SERVER_USER }}
19+
key: ${{ secrets.SSH_PRIVATE_KEY }}
20+
script: |
21+
cd ~/apps/UltimateAuth
22+
git pull origin master
23+
cd .docker
24+
docker compose down
25+
docker compose up -d --build
26+

0 commit comments

Comments
 (0)