Commit 3f728501 by Arve Knudsen Committed by GitHub

Drone: Fix Windows installer upload (#27890)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
parent 262a6faa
...@@ -600,7 +600,7 @@ steps: ...@@ -600,7 +600,7 @@ steps:
- .\grabpl.exe windows-installer --edition oss --build-id $$env:DRONE_BUILD_NUMBER - .\grabpl.exe windows-installer --edition oss --build-id $$env:DRONE_BUILD_NUMBER
- $$fname = ((Get-Childitem grafana*.msi -name) -split "`n")[0] - $$fname = ((Get-Childitem grafana*.msi -name) -split "`n")[0]
- gsutil cp $$fname gs://grafana-downloads/oss/master/ - gsutil cp $$fname gs://grafana-downloads/oss/master/
- gsutil cp $$fname.sha256 gs://grafana-downloads/oss/master/ - gsutil cp "$$fname.sha256" gs://grafana-downloads/oss/master/
environment: environment:
GCP_KEY: GCP_KEY:
from_secret: gcp_key from_secret: gcp_key
......
...@@ -841,7 +841,7 @@ def get_windows_steps(edition, version_mode, is_downstream=False): ...@@ -841,7 +841,7 @@ def get_windows_steps(edition, version_mode, is_downstream=False):
installer_commands.extend([ installer_commands.extend([
'$$fname = ((Get-Childitem grafana*.msi -name) -split "`n")[0]', '$$fname = ((Get-Childitem grafana*.msi -name) -split "`n")[0]',
'gsutil cp $$fname gs://grafana-downloads/{}/{}/'.format(edition, version_mode), 'gsutil cp $$fname gs://grafana-downloads/{}/{}/'.format(edition, version_mode),
'gsutil cp $$fname.sha256 gs://grafana-downloads/{}/{}/'.format(edition, version_mode), 'gsutil cp "$$fname.sha256" gs://grafana-downloads/{}/{}/'.format(edition, version_mode),
]) ])
steps.append({ steps.append({
'name': 'build-windows-installer', 'name': 'build-windows-installer',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment