Skip to content

Commit

Permalink
Alessandro/automatically deploy on stage (#144)
Browse files Browse the repository at this point in the history
* Automatically deploy to stage default branch

* Fix typo
  • Loading branch information
alessandrolomanto authored Mar 20, 2024
1 parent 3be4231 commit 7418844
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/push-dev-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 7418844

Please sign in to comment.