gc-tools/.github/workflows/main.yml

26 lines
596 B
YAML
Raw Permalink Normal View History

2022-05-05 23:52:03 +00:00
name: Deployment GC-Tools
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name : Checkout
uses: actions/checkout@v2
- name : Deploy Docker Using SSH
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd ~/project/gc-tools/
2022-05-05 23:56:25 +00:00
git pull
2022-05-05 23:52:03 +00:00
docker-compose down
docker-compose build
docker-compose up -d