From 97313170820fd950561130399d08c11a3612542a Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sat, 10 Sep 2022 15:56:46 -0800 Subject: [PATCH] integrate demo deploy into CI --- .github/workflows/nightly.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 24a4b64d..19e83b4e 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -38,3 +38,23 @@ jobs: uses: Ilshidur/action-discord@0.3.2 with: args: "🚀 A New build of mealie:api-nightly and mealie:frontend-nightly is available" + + deploy-demo: + runs-on: ubuntu-latest + name: Deploy Demo + needs: + - build-release + steps: + - name: Clean and Deploy Demo + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.DEMO_SERVER_IP }} + username: ${{ secrets.DEMO_SERVER_USER }} + key: ${{ secrets.DEMO_SERVER_SSH_KEY }} + port: ${{ secrets.DEMO_SERVER_PORT }} + script_stop: true + script: | + cd ~/docker/mealie-next + docker-compose pull + docker-compose down -v + docker-compose up -d