원더 2021-01-13 22:00:04 +09:00
parent 48b0b08893
commit 12d963ff6c

View File

@ -61,3 +61,17 @@ jobs:
run: echo '{"tester":"DEMO_KEY"}' > secret.json
- name: Docker Compose
run: docker-compose up -d
deployBeta:
needs:
- Docker Image CI
name: Deploy Beta
runs-on: ubuntu-latest
if: {{ github.ref == 'ref/head/master' && github.event_name == 'push' }}
steps:
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
command: cd ${{ secrets.BETA_DIR }} && git stash && git pull && docker-compose up --build