Commit 3cbca80d by bergquist

tech(build): starts docker build for latest build

parent aef41954
...@@ -44,6 +44,7 @@ deployment: ...@@ -44,6 +44,7 @@ deployment:
- go run build.go sha1-dist - go run build.go sha1-dist
- aws s3 sync ./dist s3://$BUCKET_NAME/master - aws s3 sync ./dist s3://$BUCKET_NAME/master
- ./scripts/trigger_windows_build.sh ${APPVEYOR_TOKEN} ${CIRCLE_SHA1} master - ./scripts/trigger_windows_build.sh ${APPVEYOR_TOKEN} ${CIRCLE_SHA1} master
- ./scripts/trigger_docker_build.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN}
gh_tag: gh_tag:
tag: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ tag: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
commands: commands:
......
#!/bin/bash
_circle_token=$1
_grafana_version=$2
trigger_build_url=https://circleci.com/api/v1/project/grafana/grafana-docker/tree/master?circle-token=${_circle_token}
post_data=$(cat <<EOF
{
"build_parameters": {
"GRAFANA_VERSION": "${_grafana_version}"
}
}
EOF
)
echo ${post_data}
curl \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data "${post_data}" \
--request POST ${trigger_build_url}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment