diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 544fa8a..d9c76b9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -113,7 +113,10 @@ deploy:staging: - apk add --no-cache curl jq script: - echo "Deploying to staging environment..." - - curl -X POST ${STAGING_DEPLOY_WEBHOOK} -d "{\"image\": \"$DOCKER_IMAGE\"}" + - | + curl -X POST "${STAGING_DEPLOY_WEBHOOK}" \ + -H "Content-Type: application/json" \ + -d '{"image":"'"${DOCKER_IMAGE}"'"}' environment: name: staging url: https://staging-mtgsearch.example.com @@ -129,7 +132,10 @@ deploy:production: - apk add --no-cache curl jq script: - echo "Deploying to production..." - - curl -X POST ${PROD_DEPLOY_WEBHOOK} -d "{\"image\": \"$DOCKER_IMAGE\"}" + - | + curl -X POST "${PROD_DEPLOY_WEBHOOK}" \ + -H "Content-Type: application/json" \ + -d '{"image":"'"${DOCKER_IMAGE}"'"}' environment: name: production url: https://mtgsearch.example.com