diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7b1a580..62f5b16 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -26,3 +26,13 @@ jobs: with: push: true tags: ghcr.io/opendonationassistant/oda-widget-page:master + + - name: Deploying new version + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USERNAME }} + key: ${{ secrets.SSH_KEY }} + passphrase: ${{ secrets.SSH_PASSPHRASE }} + port: ${{ secrets.PORT }} + script: sh ~/update_widgets.sh ${{ github.RUN_NUMBER }}