| 
									
										
										
										
											2021-07-14 20:40:28 +08: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 17:27:11 +08:00
										 |  |  | """ | 
					
						
							|  |  |  | This module returns a Drone configuration including pipelines and secrets. | 
					
						
							|  |  |  | """ | 
					
						
							| 
									
										
										
										
											2021-07-14 20:40:28 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-12 23:19:06 +08:00
										 |  |  | load("scripts/drone/events/cron.star", "cronjobs") | 
					
						
							| 
									
										
										
										
											2023-01-30 17:27:11 +08:00
										 |  |  | load("scripts/drone/events/main.star", "main_pipelines") | 
					
						
							| 
									
										
										
										
											2023-09-12 23:19:06 +08:00
										 |  |  | load("scripts/drone/events/pr.star", "pr_pipelines") | 
					
						
							| 
									
										
										
										
											2022-12-07 15:13:57 +08:00
										 |  |  | load( | 
					
						
							| 
									
										
										
										
											2023-01-30 17:27:11 +08:00
										 |  |  |     "scripts/drone/events/release.star", | 
					
						
							| 
									
										
										
										
											2023-04-03 18:43:37 +08:00
										 |  |  |     "integration_test_pipelines", | 
					
						
							| 
									
										
										
										
											2023-01-30 17:27:11 +08:00
										 |  |  |     "publish_artifacts_pipelines", | 
					
						
							|  |  |  |     "publish_npm_pipelines", | 
					
						
							|  |  |  |     "publish_packages_pipeline", | 
					
						
							| 
									
										
										
										
											2022-12-07 15:13:57 +08:00
										 |  |  | ) | 
					
						
							| 
									
										
										
										
											2023-05-04 02:56:02 +08:00
										 |  |  | load( | 
					
						
							| 
									
										
										
										
											2023-09-12 23:19:06 +08:00
										 |  |  |     "scripts/drone/pipelines/ci_images.star", | 
					
						
							|  |  |  |     "publish_ci_windows_test_image_pipeline", | 
					
						
							| 
									
										
										
										
											2023-05-04 02:56:02 +08:00
										 |  |  | ) | 
					
						
							| 
									
										
										
										
											2022-12-07 15:13:57 +08:00
										 |  |  | load( | 
					
						
							| 
									
										
										
										
											2023-01-30 17:27:11 +08:00
										 |  |  |     "scripts/drone/pipelines/publish_images.star", | 
					
						
							|  |  |  |     "publish_image_pipelines_public", | 
					
						
							| 
									
										
										
										
											2022-12-07 15:13:57 +08:00
										 |  |  | ) | 
					
						
							| 
									
										
										
										
											2023-05-10 22:16:59 +08:00
										 |  |  | load( | 
					
						
							|  |  |  |     "scripts/drone/pipelines/windows.star", | 
					
						
							|  |  |  |     "windows_test_backend", | 
					
						
							|  |  |  | ) | 
					
						
							| 
									
										
										
										
											2023-09-12 23:19:06 +08:00
										 |  |  | load( | 
					
						
							|  |  |  |     "scripts/drone/rgm.star", | 
					
						
							|  |  |  |     "rgm", | 
					
						
							|  |  |  | ) | 
					
						
							| 
									
										
										
										
											2023-01-30 17:27:11 +08:00
										 |  |  | load("scripts/drone/vault.star", "secrets") | 
					
						
							| 
									
										
										
										
											2020-07-10 22:09:21 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-01-30 17:27:11 +08:00
										 |  |  | def main(_ctx): | 
					
						
							| 
									
										
										
										
											2022-12-07 15:13:57 +08:00
										 |  |  |     return ( | 
					
						
							| 
									
										
										
										
											2023-01-30 17:27:11 +08:00
										 |  |  |         pr_pipelines() + | 
					
						
							|  |  |  |         main_pipelines() + | 
					
						
							|  |  |  |         publish_image_pipelines_public() + | 
					
						
							|  |  |  |         publish_artifacts_pipelines("public") + | 
					
						
							|  |  |  |         publish_npm_pipelines() + | 
					
						
							|  |  |  |         publish_packages_pipeline() + | 
					
						
							| 
									
										
										
										
											2023-05-04 02:56:02 +08:00
										 |  |  |         rgm() + | 
					
						
							| 
									
										
										
										
											2023-05-10 22:16:59 +08:00
										 |  |  |         [windows_test_backend({ | 
					
						
							|  |  |  |             "event": ["promote"], | 
					
						
							|  |  |  |             "target": ["test-windows"], | 
					
						
							|  |  |  |         }, "oss", "testing")] + | 
					
						
							| 
									
										
										
										
											2023-04-03 18:43:37 +08:00
										 |  |  |         integration_test_pipelines() + | 
					
						
							| 
									
										
										
										
											2023-05-08 21:22:34 +08:00
										 |  |  |         publish_ci_windows_test_image_pipeline() + | 
					
						
							| 
									
										
										
										
											2023-01-30 17:27:11 +08:00
										 |  |  |         cronjobs() + | 
					
						
							|  |  |  |         secrets() | 
					
						
							| 
									
										
										
										
											2022-12-07 15:13:57 +08:00
										 |  |  |     ) |