mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
3b6cef9dfa
* Refactor test pipelines * Move pr, main and release starlark files under scripts/drone/event * Move cron.star to scripts/drone/events * Further unused code removal * Introducing build.star * Extract verify_drone.star * Extract windows.star * Extract publish.star * Remove unused code * Fix formatting in main.star
22 lines
1.3 KiB
Plaintext
22 lines
1.3 KiB
Plaintext
# 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
|
|
|
|
load('scripts/drone/events/pr.star', 'pr_pipelines')
|
|
load('scripts/drone/events/main.star', 'main_pipelines')
|
|
load('scripts/drone/pipelines/docs.star', 'docs_pipelines')
|
|
load('scripts/drone/events/release.star', 'release_pipelines', 'publish_image_pipelines', 'publish_artifacts_pipelines', 'publish_npm_pipelines', 'publish_packages_pipeline', 'artifacts_page_pipeline')
|
|
load('scripts/drone/version.star', 'version_branch_pipelines')
|
|
load('scripts/drone/events/cron.star', 'cronjobs')
|
|
load('scripts/drone/vault.star', 'secrets')
|
|
|
|
def main(ctx):
|
|
edition = 'oss'
|
|
return pr_pipelines(edition=edition) + main_pipelines(edition=edition) + release_pipelines() + \
|
|
publish_image_pipelines('public') + publish_image_pipelines('security') + \
|
|
publish_artifacts_pipelines('security') + publish_artifacts_pipelines('public') + \
|
|
publish_npm_pipelines('public') + publish_packages_pipeline() + artifacts_page_pipeline() + \
|
|
version_branch_pipelines() + cronjobs(edition=edition) + secrets()
|