Skip to content

Commit

Permalink
Comment the send webhook task
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrolomanto authored Mar 21, 2024
1 parent 5502c26 commit ba16670
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/push-dev-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ jobs:
${{ env.DOCKER_REPOSITORY }}:${{ env.DOCKER_IMAGE_TAG_WITH_DATE }}
- name: Get default branch name
run: echo "The default branch is ${{ github.event.repository.default_branch }} and the actual branch is ${{ github.ref }}"
-
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 }}
#-
# 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 ba16670

Please sign in to comment.