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: