Skip to content

Commit 8fadaa8

Browse files
authored
Create dev
1 parent 6e2f680 commit 8fadaa8

File tree

1 file changed

+30
-0
lines changed
  • .github/workflows

1 file changed

+30
-0
lines changed

.github/workflows/dev

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)