Build: Still auto-publish non-release artifacts (#43021) (#43074)

* Still auto-publish non-release artifacts

* Add version to prerelease bucket path

(cherry picked from commit 4a4d076bb1)
This commit is contained in:
malcolmholmes
2021-12-14 10:00:44 +00:00
committed by GitHub
parent e76d898f22
commit b0152ff2f2
2 changed files with 12 additions and 9 deletions
+4 -1
View File
@@ -927,8 +927,11 @@ def upload_packages_step(edition, ver_mode, is_downstream=False):
if ver_mode == 'test-release':
cmd = './bin/grabpl upload-packages --edition {} '.format(edition) + \
'--packages-bucket grafana-downloads-test'
elif ver_mode == 'release':
packages_bucket = '$${{PRERELEASE_BUCKET}}/artifacts/downloads{}/${{DRONE_TAG}}'.format(enterprise2_suffix(edition))
cmd = './bin/grabpl upload-packages --edition {} --packages-bucket {}'.format(edition, packages_bucket)
else:
cmd = './bin/grabpl upload-packages --edition {}{}'.format(edition, packages_bucket)
cmd = './bin/grabpl upload-packages --edition {} --packages-bucket grafana-downloads'.format(edition)
deps = []
if edition in 'enterprise2':