We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02b915d commit 9afd190Copy full SHA for 9afd190
.github/workflows/deploy.yml
@@ -0,0 +1,21 @@
1
+name: Deploy to Server
2
+on:
3
+ push:
4
+ branches:
5
+ - main
6
+jobs:
7
+ deploy:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Deploy using SSH
11
+ uses: appleboy/ssh-action@master
12
+ with:
13
+ host: ${{ secrets.SSH_HOST }}
14
+ username: ${{ secrets.SSH_USERNAME }}
15
+ key: ${{ secrets.ACTIONS_SSH_PRIVATE_KEY }}
16
+ script: |
17
+ cd /root/formula1_app/F1DataLab
18
+ docker compose -f docker-compose_prod.yml down
19
+ git fetch
20
+ git pull
21
+ docker compose -f docker-compose_prod.yml up -d --build
0 commit comments