diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index 2fc20c3..0cc6c52 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -1,4 +1,4 @@ -name: Publish Docker Image +name: Publish Docker Image and update bot's server on: pull_request: @@ -35,4 +35,11 @@ jobs: file: ./Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} + + - name: Update container in bot's server + if: success() + run: | + curl -X POST -H "Content-Type: application/json" -d '{"image": "alexcrav/saasbot"}' $WEBHOOK_SERVER + env: + WEBHOOK_SERVER: ${{ secrets.WEBHOOK_SERVER }}