Update upload-cdn command args (#44966)

This commit is contained in:
Dimitris Sotirakis
2022-02-07 10:56:05 +01:00
committed by GitHub
parent f96a6c10c5
commit 67225d9cfc
2 changed files with 15 additions and 10 deletions

View File

@@ -317,8 +317,10 @@ def e2e_tests_artifacts(edition):
def upload_cdn_step(edition, ver_mode):
src_dir = ''
if ver_mode == "release":
bucket = "$${PRERELEASE_BUCKET}/artifacts/static-assets"
bucket = "$${PRERELEASE_BUCKET}"
src_dir = " --src-dir artifacts/static-assets"
else:
bucket = "grafana-static-assets"
@@ -341,7 +343,7 @@ def upload_cdn_step(edition, ver_mode):
'PRERELEASE_BUCKET': from_secret(prerelease_bucket)
},
'commands': [
'./bin/grabpl upload-cdn --edition {} --bucket "{}"'.format(edition, bucket),
'./bin/grabpl upload-cdn --edition {} --src-bucket "{}"{}'.format(edition, bucket, src_dir),
],
}