diff --git a/.github/workflows/push-dev-docker-images.yml b/.github/workflows/push-dev-docker-images.yml index e003b0fa5..f84dc6c7d 100644 --- a/.github/workflows/push-dev-docker-images.yml +++ b/.github/workflows/push-dev-docker-images.yml @@ -54,3 +54,10 @@ jobs: tags: | ${{ env.DOCKER_REPOSITORY }}:${{ env.DOCKER_IMAGE_TAG }} ${{ env.DOCKER_REPOSITORY }}:${{ env.DOCKER_IMAGE_TAG_WITH_DATE }} + - + if: github.ref == 'refs/heads/{{ github.event.repository.default_branch }}' + name: Send Webhook to deploy automatically to stage + run: | + echo '{"sqsdockerversion":"${{ env.DOCKER_REPOSITORY }}:${{ env.DOCKER_IMAGE_TAG }}"}' > temp.json + jq -s '.[0] * .[1]' config.json temp.json > combined_config.json + curl -H "Content-Type: application/json" -X POST -d @combined_config.json ${{ secrets.DEPLOY_URL }}