mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 02:10:45 -06:00
4e99cd2860
* Edit deprecation-policy * Edit drone-pipeline * Docs: Edit of 4 files, part 2 of quality improvement * Update contribute/developer-guide.md * Update contribute/developer-guide.md Co-authored-by: J Stickler <julie.stickler@grafana.com> * Changes from feedback * Properly style UNIX * Update contribute/drone-pipeline.md * Update contribute/feature-toggles.md Co-authored-by: J Stickler <julie.stickler@grafana.com> * Format with prettier --------- Co-authored-by: J Stickler <julie.stickler@grafana.com>
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_SERVER
andDRONE_TOKEN
found 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 repo
before opening a pull request 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-release-guild
squad.