Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 1.19 KB

drone-pipeline.md

File metadata and controls

17 lines (10 loc) · 1.19 KB

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

  1. Set environment variables DRONE_SERVER and DRONE_TOKEN found in your Drone account. These environment variables are used to verify that only Grafana employees can make changes to the pipelines.
  2. Install buildifier, and use it to format the Starlark files you want to edit.

Drone development

  1. 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.
  2. 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.