Skip to content
Snippets Groups Projects
Commit 993044e2 authored by Robert Fratto's avatar Robert Fratto Committed by Robert Fratto
Browse files

ci/drone: fix deploy command by escaping double quotes in JSON body

parent 4384371b
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,7 @@ local drone = [
CIRLCE_TOKEN: {from_secret: "circle_token"}
},
commands: [
'curl -s --header "Content-Type: application/json" --data "{\"build_parameters\": {\"CIRCLE_JOB\": \"deploy\", \"IMAGE_NAMES\": \"$(make print-images)\"}}" --request POST https://circleci.com/api/v1.1/project/github/raintank/deployment_tools/tree/master?circle-token=$CIRCLE_TOKEN'
'curl -s --header "Content-Type: application/json" --data "{\\"build_parameters\\": {\\"CIRCLE_JOB\\": \\"deploy\\", \\"IMAGE_NAMES\\": \\"$(make print-images)\\"}}" --request POST https://circleci.com/api/v1.1/project/github/raintank/deployment_tools/tree/master?circle-token=$CIRCLE_TOKEN'
]
}
],
......
......@@ -429,9 +429,9 @@ kind: pipeline
name: deploy
steps:
- commands:
- 'curl -s --header "Content-Type: application/json" --data "{"build_parameters":
{"CIRCLE_JOB": "deploy", "IMAGE_NAMES": "$(make print-images)"}}" --request POST
https://circleci.com/api/v1.1/project/github/raintank/deployment_tools/tree/master?circle-token=$CIRCLE_TOKEN'
- 'curl -s --header "Content-Type: application/json" --data "{\"build_parameters\":
{\"CIRCLE_JOB\": \"deploy\", \"IMAGE_NAMES\": \"$(make print-images)\"}}" --request
POST https://circleci.com/api/v1.1/project/github/raintank/deployment_tools/tree/master?circle-token=$CIRCLE_TOKEN'
environment:
CIRLCE_TOKEN:
from_secret: circle_token
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment