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-01-30 03:27:11 -06:00
|
|
|
load("scripts/drone/events/pr.star", "pr_pipelines")
|
|
|
|
load("scripts/drone/events/main.star", "main_pipelines")
|
2022-12-07 01:13:57 -06:00
|
|
|
load(
|
2023-01-30 03:27:11 -06:00
|
|
|
"scripts/drone/events/release.star",
|
|
|
|
"artifacts_page_pipeline",
|
|
|
|
"enterprise2_pipelines",
|
|
|
|
"enterprise_pipelines",
|
2023-04-03 05:43:37 -05:00
|
|
|
"integration_test_pipelines",
|
2023-01-30 03:27:11 -06:00
|
|
|
"oss_pipelines",
|
|
|
|
"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(
|
|
|
|
"scripts/drone/rgm.star",
|
|
|
|
"rgm",
|
|
|
|
)
|
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",
|
|
|
|
"publish_image_pipelines_security",
|
2022-12-07 01:13:57 -06:00
|
|
|
)
|
2023-05-08 08:22:34 -05:00
|
|
|
load(
|
|
|
|
"scripts/drone/pipelines/ci_images.star",
|
|
|
|
"publish_ci_windows_test_image_pipeline",
|
|
|
|
)
|
2023-01-30 03:27:11 -06:00
|
|
|
load("scripts/drone/pipelines/github.star", "publish_github_pipeline")
|
|
|
|
load("scripts/drone/pipelines/aws_marketplace.star", "publish_aws_marketplace_pipeline")
|
2023-05-10 09:16:59 -05:00
|
|
|
load(
|
|
|
|
"scripts/drone/pipelines/windows.star",
|
|
|
|
"windows_test_backend",
|
|
|
|
)
|
2023-01-30 03:27:11 -06:00
|
|
|
load("scripts/drone/version.star", "version_branch_pipelines")
|
|
|
|
load("scripts/drone/events/cron.star", "cronjobs")
|
|
|
|
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() +
|
|
|
|
oss_pipelines() +
|
|
|
|
enterprise_pipelines() +
|
|
|
|
enterprise2_pipelines() +
|
|
|
|
publish_image_pipelines_public() +
|
|
|
|
publish_image_pipelines_security() +
|
|
|
|
publish_github_pipeline("public") +
|
|
|
|
publish_github_pipeline("security") +
|
|
|
|
publish_aws_marketplace_pipeline("public") +
|
|
|
|
publish_artifacts_pipelines("security") +
|
|
|
|
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-01-30 03:27:11 -06:00
|
|
|
artifacts_page_pipeline() +
|
|
|
|
version_branch_pipelines() +
|
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
|
|
|
)
|