2021-07-14 07:40:28 -05:00
|
|
|
# To generate the .drone.yml file:
|
|
|
|
# 1. Modify the *.star definitions
|
|
|
|
# 2. Login to drone and export the env variables (token and server) shown here: https://drone.grafana.net/account
|
|
|
|
# 3. Run `make drone`
|
|
|
|
# More information about this process here: https://github.com/grafana/deployment_tools/blob/master/docs/infrastructure/drone/signing.md
|
2023-01-30 03:27:11 -06:00
|
|
|
"""
|
|
|
|
This module returns a Drone configuration including pipelines and secrets.
|
|
|
|
"""
|
2021-07-14 07:40:28 -05:00
|
|
|
|
2023-09-12 10:19:06 -05:00
|
|
|
load("scripts/drone/events/cron.star", "cronjobs")
|
2023-01-30 03:27:11 -06:00
|
|
|
load("scripts/drone/events/main.star", "main_pipelines")
|
2023-09-12 10:19:06 -05:00
|
|
|
load("scripts/drone/events/pr.star", "pr_pipelines")
|
2022-12-07 01:13:57 -06:00
|
|
|
load(
|
2023-01-30 03:27:11 -06:00
|
|
|
"scripts/drone/events/release.star",
|
2023-04-03 05:43:37 -05:00
|
|
|
"integration_test_pipelines",
|
2023-01-30 03:27:11 -06:00
|
|
|
"publish_artifacts_pipelines",
|
|
|
|
"publish_npm_pipelines",
|
|
|
|
"publish_packages_pipeline",
|
2022-12-07 01:13:57 -06:00
|
|
|
)
|
2023-05-03 13:56:02 -05:00
|
|
|
load(
|
2023-09-12 10:19:06 -05:00
|
|
|
"scripts/drone/pipelines/ci_images.star",
|
|
|
|
"publish_ci_windows_test_image_pipeline",
|
2023-05-03 13:56:02 -05:00
|
|
|
)
|
2022-12-07 01:13:57 -06:00
|
|
|
load(
|
2023-01-30 03:27:11 -06:00
|
|
|
"scripts/drone/pipelines/publish_images.star",
|
|
|
|
"publish_image_pipelines_public",
|
2022-12-07 01:13:57 -06:00
|
|
|
)
|
2023-05-10 09:16:59 -05:00
|
|
|
load(
|
|
|
|
"scripts/drone/pipelines/windows.star",
|
|
|
|
"windows_test_backend",
|
|
|
|
)
|
2023-09-12 10:19:06 -05:00
|
|
|
load(
|
|
|
|
"scripts/drone/rgm.star",
|
|
|
|
"rgm",
|
|
|
|
)
|
2023-01-30 03:27:11 -06:00
|
|
|
load("scripts/drone/vault.star", "secrets")
|
2020-07-10 09:09:21 -05:00
|
|
|
|
2023-01-30 03:27:11 -06:00
|
|
|
def main(_ctx):
|
2022-12-07 01:13:57 -06:00
|
|
|
return (
|
2023-01-30 03:27:11 -06:00
|
|
|
pr_pipelines() +
|
|
|
|
main_pipelines() +
|
|
|
|
publish_image_pipelines_public() +
|
|
|
|
publish_artifacts_pipelines("public") +
|
|
|
|
publish_npm_pipelines() +
|
|
|
|
publish_packages_pipeline() +
|
2023-05-03 13:56:02 -05:00
|
|
|
rgm() +
|
2023-05-10 09:16:59 -05:00
|
|
|
[windows_test_backend({
|
|
|
|
"event": ["promote"],
|
|
|
|
"target": ["test-windows"],
|
|
|
|
}, "oss", "testing")] +
|
2023-04-03 05:43:37 -05:00
|
|
|
integration_test_pipelines() +
|
2023-05-08 08:22:34 -05:00
|
|
|
publish_ci_windows_test_image_pipeline() +
|
2023-01-30 03:27:11 -06:00
|
|
|
cronjobs() +
|
|
|
|
secrets()
|
2022-12-07 01:13:57 -06:00
|
|
|
)
|