mirror of https://github.com/grafana/grafana.git
1.2 KiB
1.2 KiB
Making changes to the Drone pipeline
Only members of the Grafana organization can make changes to the Drone pipeline.
The Drone pipelines are built with Starlark, a similar language to Python. The Starlark files are located in scripts/drone.
Drone setup
- Set environment variables
DRONE_SERVERandDRONE_TOKENfound in your Drone account. These environment variables are used to verify that only Grafana employees can make changes to the pipelines. - Install buildifier, and use it to format the Starlark files you want to edit.
Drone development
- Open a pull request where you can do test runs for your changes. If you need to experiment with secrets, create a pull request in the
grafana-ci-sandbox repobefore opening a pull request in the main repo. - Run
make droneafter making changes to the Starlark files. This builds the.drone.ymlfile.
For further questions, reach out to the grafana-release-guild squad.