Revision 97730aec10ee742f1459178e7ca7ec46d8438edf authored by Sofia Papagiannaki on 13 October 2022, 08:26:25 UTC, committed by GitHub on 13 October 2022, 08:26:25 UTC
1 parent 5a0d90b
trigger_docker_build.sh
#!/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}"
Computing file changes ...