CDN: Adds uppload to CDN step to drone CI (#30879)

* CDN: Adds uppload to CDN step to drone CI

* Bump grabpl

* updated sh files

* crying

* add init dependency

* Removed last test to get this to work
This commit is contained in:
Torkel Ödegaard
2021-02-09 14:55:11 +01:00
committed by GitHub
parent 9a11648567
commit 99e72e65ab
6 changed files with 52 additions and 22 deletions
+18 -1
View File
@@ -1,4 +1,4 @@
grabpl_version = '0.5.36'
grabpl_version = '0.5.37'
build_image = 'grafana/build-container:1.3.2'
publish_image = 'grafana/grafana-ci-deploy:1.3.1'
grafana_docker_image = 'grafana/drone-grafana-docker:0.3.2'
@@ -309,6 +309,23 @@ def publish_storybook_step(edition, ver_mode):
'commands': commands,
}
def upload_cdn(edition):
return {
'name': 'upload-cdn-assets',
'image': publish_image,
'depends_on': [
'package',
],
'environment': {
'GCP_KEY': {
'from_secret': 'gcp_key',
},
},
'commands': [
'./bin/grabpl upload-cdn --edition {} --bucket "grafana-static-assets"'.format(edition),
],
}
def build_backend_step(edition, ver_mode, variants=None, is_downstream=False):
variants_str = ''
if variants:
+3
View File
@@ -32,6 +32,7 @@ load(
'publish_packages_step',
'notify_pipeline',
'integration_test_services',
'upload_cdn'
)
ver_mode = 'master'
@@ -79,7 +80,9 @@ def get_steps(edition, is_downstream=False):
release_canary_npm_packages_step(edition),
upload_packages_step(edition=edition, ver_mode=ver_mode, is_downstream=is_downstream),
deploy_to_kubernetes_step(edition=edition, is_downstream=is_downstream),
upload_cdn(edition)
])
if include_enterprise2:
edition2 = 'enterprise2'
steps.extend([