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
|
|
|
|
|
2022-07-20 08:43:19 -05:00
|
|
|
load('scripts/drone/events/pr.star', 'pr_pipelines')
|
|
|
|
load('scripts/drone/events/main.star', 'main_pipelines')
|
2022-02-21 05:55:16 -06:00
|
|
|
load('scripts/drone/pipelines/docs.star', 'docs_pipelines')
|
2022-07-20 08:43:19 -05:00
|
|
|
load('scripts/drone/events/release.star', 'release_pipelines', 'publish_image_pipelines', 'publish_artifacts_pipelines', 'publish_npm_pipelines', 'publish_packages_pipeline', 'artifacts_page_pipeline')
|
2021-09-07 04:15:04 -05:00
|
|
|
load('scripts/drone/version.star', 'version_branch_pipelines')
|
2022-07-20 08:43:19 -05:00
|
|
|
load('scripts/drone/events/cron.star', 'cronjobs')
|
2021-09-07 04:15:04 -05:00
|
|
|
load('scripts/drone/vault.star', 'secrets')
|
2020-07-10 09:09:21 -05:00
|
|
|
|
2020-07-13 09:43:56 -05:00
|
|
|
def main(ctx):
|
2020-07-17 06:52:09 -05:00
|
|
|
edition = 'oss'
|
2022-02-22 12:06:14 -06:00
|
|
|
return pr_pipelines(edition=edition) + main_pipelines(edition=edition) + release_pipelines() + \
|
2022-01-11 08:28:29 -06:00
|
|
|
publish_image_pipelines('public') + publish_image_pipelines('security') + \
|
|
|
|
publish_artifacts_pipelines('security') + publish_artifacts_pipelines('public') + \
|
2022-07-07 10:00:28 -05:00
|
|
|
publish_npm_pipelines('public') + publish_packages_pipeline() + artifacts_page_pipeline() + \
|
2022-01-19 10:42:40 -06:00
|
|
|
version_branch_pipelines() + cronjobs(edition=edition) + secrets()
|