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