mirror of
https://github.com/grafana/grafana.git
synced 2024-12-29 10:21:41 -06:00
4b16cd6cc8
* Build: introduce shellcheck Fixes #16198
24 lines
451 B
Bash
Executable File
24 lines
451 B
Bash
Executable File
#!/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}"
|