Skip to content

Commit f017d89

Browse files
author
James Massey
committed
auto deploymend - needs test
1 parent 04966e5 commit f017d89

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.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 EC2
2+
3+
on:
4+
push:
5+
branches:
6+
- Main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: SSH and Deploy
16+
run: |
17+
ssh -o StrictHostKeyChecking=no -i ${{ secrets.SSH_KEY }} ${{ secrets.USERNAME }}@${{ secrets.HOST }} << 'ENDSSH'
18+
cd /srv/ZorakBot
19+
sudo git pull
20+
docker-compose up -d --build zorak_bot_prod
21+
ENDSSH
22+
env:
23+
SSH_KEY: ${{ secrets.SSH_KEY }}

0 commit comments

Comments
 (0)