tech(build): starts docker build for latest build

This commit is contained in:
bergquist
2017-02-02 08:59:37 +01:00
parent aef4195493
commit 3cbca80d3c
2 changed files with 24 additions and 0 deletions

23
scripts/trigger_docker_build.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/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}