From 12d963ff6cc02b8bcb3d181bc654b7c09dc89851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Wed, 13 Jan 2021 22:00:04 +0900 Subject: [PATCH] ci: https://github.com/koreanbots/v2-testing/issues/18 --- .github/workflows/deploy.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6a60a46..15f86d1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -60,4 +60,18 @@ jobs: - name: Create needed files run: echo '{"tester":"DEMO_KEY"}' > secret.json - name: Docker Compose - run: docker-compose up -d \ No newline at end of file + 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 \ No newline at end of file