mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
f41651ad68
* Create drone-pipeline.md * Update drone-pipeline.md * Update README.md * Update drone-pipeline.md * Apply suggestions from code review Co-authored-by: Horst Gutmann <horst.gutmann@grafana.com> * Format file --------- Co-authored-by: Horst Gutmann <horst.gutmann@grafana.com>
1.1 KiB
1.1 KiB
Making changes to the Drone pipeline
Only people in the Grafana organization can make changes to the Drone pipeline
The Drone pipelines are built with Starlark, a language which is similar to Python. The Starlark files are located in scripts/drone
.
Setup
- Set environment variables
DRONE_SERVER
andDRONE_TOKEN
, which can be found on your Drone account. These 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 edit.
Develop
- Open a PR where you can do test runs for your changes. If you need to experiment with secrets, create a PR in the grafana-ci-sandbox repo, before opening a PR in the main repo.
- Run
make drone
after making changes to the Starlark files. This builds the.drone.yml
file.
For further questions, reach out to the grafana-delivery squad.