Skip to content

Commit 5ad9877

Browse files
authored
Create Deploy
1 parent 918d13c commit 5ad9877

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/Deploy

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

0 commit comments

Comments
 (0)