Skip to content

Commit 413ca17

Browse files
author
jacquesbach
committed
Deploy Staging Process
1 parent f9b999a commit 413ca17

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deploy to Staging
2+
3+
on:
4+
push:
5+
branches: [ dev ]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Deploy Staging via SSH
12+
uses: appleboy/ssh-action@v1.0.3
13+
with:
14+
host: ${{ secrets.SERVER_HOST }}
15+
username: ${{ secrets.SERVER_USER }}
16+
key: ${{ secrets.SSH_PRIVATE_KEY }}
17+
script: |
18+
cd /home/ubuntu/balkonkraftwerk-staging
19+
git pull origin dev
20+
sudo systemctl restart balkonkraftwerk-staging
21+
echo "Staging Update erfolgreich. Test-App läuft auf Port 5001!"

0 commit comments

Comments
 (0)