Files
fastapi-admin/.github/workflows/deploy.yml
2020-09-19 20:26:30 +08:00

18 lines
419 B
YAML

name: deploy
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd /root/fastapi-admin/
git pull
docker-compose up -d --build