mirror of
https://github.com/uw935/vatsimfox.git
synced 2026-09-17 04:48:58 +00:00
added: ci for deployment on server
This commit is contained in:
@@ -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
|
||||
@@ -6,4 +6,4 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "80:5000"
|
||||
- "9230:5000"
|
||||
|
||||
Reference in New Issue
Block a user