You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl -X POST -H 'Content-type: application/json' --data '{"text":":gear: Generated new build number: $BUILD_NUMBER"}' ${{ env.SLACK_WEBHOOK_URL }}
48
+
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\":gear: Generated new build number: $BUILD_NUMBER\"}" ${{ env.SLACK_WEBHOOK_URL }}
49
49
fi
50
50
echo "BUILD_NUMBER=$BUILD_NUMBER" >> $GITHUB_ENV
51
51
- name: Login to Docker Hub
@@ -60,18 +60,18 @@ jobs:
60
60
echo "checking if $IMAGE exists"
61
61
if ! docker manifest inspect "$IMAGE" > /dev/null 2>&1; then
62
62
echo "provided image $IMAGE does not exist. exiting..."
63
-
curl -X POST -H 'Content-type: application/json' --data '{"text":":x: :warning: Provided image $IMAGE does not exist! Exiting deployment..."}' ${{ env.SLACK_WEBHOOK_URL }}
63
+
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\":x: :warning: Provided image $IMAGE does not exist! Exiting deployment...\"}" ${{ env.SLACK_WEBHOOK_URL }}
64
64
exit 1
65
65
fi
66
66
echo "provided image $IMAGE exists ✅"
67
-
curl -X POST -H 'Content-type: application/json' --data '{"text":":white_check_mark: Image $IMAGE exists and ready for deployment"}' ${{ env.SLACK_WEBHOOK_URL }}
67
+
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\":white_check_mark: Image $IMAGE exists and ready for deployment\"}" ${{ env.SLACK_WEBHOOK_URL }}
68
68
echo "IMAGE=$IMAGE" >> $GITHUB_ENV
69
69
- name: Maven Clean Verify
70
70
if: ${{ github.event.inputs.build_number == '' }}
71
71
run: |
72
-
curl -X POST -H 'Content-type: application/json' --data '{"text":":hammer_and_wrench: Building and deploying $IMAGE to Docker Hub..."}' ${{ env.SLACK_WEBHOOK_URL }}
72
+
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\":hammer_and_wrench: Building and deploying $IMAGE to Docker Hub...\"}" ${{ env.SLACK_WEBHOOK_URL }}
curl -X POST -H 'Content-type: application/json' --data '{"text":":white_check_mark: Successfully built and pushed $IMAGE to Docker Hub"}' ${{ env.SLACK_WEBHOOK_URL }}
74
+
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\":white_check_mark: Successfully built and pushed $IMAGE to Docker Hub\"}" ${{ env.SLACK_WEBHOOK_URL }}
0 commit comments