Skip to content

Commit c2a9814

Browse files
committed
feat: CI/CD with Docker
1 parent 1275ed7 commit c2a9814

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy Empower Orphans (Docker)
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Deploy over SSH
12+
uses: appleboy/ssh-action@v1.0.3
13+
with:
14+
host: ${{ secrets.VPS_HOST }}
15+
username: ${{ secrets.VPS_USER }}
16+
key: ${{ secrets.VPS_SSH_KEY }}
17+
script: |
18+
set -e
19+
cd /var/www/Empower-Orphans-Website
20+
git pull origin main
21+
docker compose up -d --build
22+
docker image prune -f

0 commit comments

Comments
 (0)