added: ci for deployment on server

This commit is contained in:
2024-02-06 16:15:18 +07:00
parent 115a17e951
commit 417af932cb
2 changed files with 24 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
name: deployment on server
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu
steps:
- uses: actions/checkout@v3
- name: update bot
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
script: |
cd /home/deploy/vatsimbot && git pull origin main --force && cd /home/deploy/vatsimbot/src
docker-compose up -d --build
+1 -1
View File
@@ -6,4 +6,4 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
ports: ports:
- "80:5000" - "9230:5000"