Skip to content

Commit 433501e

Browse files
committed
feat: add CICD
1 parent a4fbd6d commit 433501e

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Deploy to my Raspberry Pi
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
Deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Deploy to my Raspberry Pi
13+
uses: appleboy/ssh-action@v1.0.3
14+
with:
15+
host: ${{ secrets.HOST }}
16+
username: ${{ secrets.USERNAME }}
17+
password: ${{ secrets.PASSWORD }}
18+
script_stop: true
19+
script: |
20+
cd /apps/bookmarket
21+
git pull origin main
22+
docker compose down
23+
docker compose up -d --build

0 commit comments

Comments
 (0)