We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e2f680 commit 8fadaa8Copy full SHA for 8fadaa8
.github/workflows/dev
@@ -0,0 +1,30 @@
1
+name: Staging
2
+
3
+on:
4
+ push:
5
+ branches: [ "dev" ]
6
7
+jobs:
8
+ build:
9
+ runs-on: self-hosted
10
+ steps:
11
+ - name: Deploy
12
+ uses: appleboy/ssh-action@master
13
+ with:
14
+ host: ${{ secrets.REMOTE_HOST }}
15
+ username: ${{ secrets.REMOTE_USER }}
16
+ port: ${{ secrets.REMOTE_PORT }}
17
+ key: ${{ secrets.SSH_PRIVATE_KEY }}
18
+ script: |
19
+ set -e
20
21
+ cd /home/kni/prace_kol/staging/StronaPraceKol
22
+ git stash
23
+ git checkout dev
24
+ git pull
25
+ docker compose -p kola_staging up --build -d
26
27
+ cd ../
28
+ echo "$(date): service staging deployed successfully" >> deploy-log.txt
29
30
+ docker system prune -a -f
0 commit comments