From 5e6bbd9884d6a6fe1f2692db6b9dee03888e1412 Mon Sep 17 00:00:00 2001 From: geleeroyale Date: Mon, 5 Aug 2024 17:52:12 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7fa8cb..5bfffdc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,3 +35,20 @@ jobs: context: . push: true tags: ghcr.io/giveth/givpower-bot:main + deploy: + needs: publish + runs-on: ubuntu-latest + steps: + - name: SSH and Redeploy + uses: appleboy/ssh-action@v1.0.0 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.SSH_PRIVATEKEY }} + port: ${{ secrets.SSH_PORT }} + script: | + cd giveth-all + docker compose stop impact-graph + docker compose pull impact-graph + docker compose up -d impact-graph + docker image prune -a --force