Bring back windows installers for main builds (#74698)

This commit is contained in:
Dimitris Sotirakis 2023-09-12 10:31:04 +03:00 committed by GitHub
parent 9c83dd43d9
commit 36728dd671
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

View File

@ -2304,6 +2304,25 @@ steps:
-OutFile grabpl.exe
image: grafana/ci-wix:0.1.1
name: windows-init
- commands:
- $$gcpKey = $$env:GCP_KEY
- '[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($$gcpKey))
> gcpkey.json'
- dos2unix gcpkey.json
- gcloud auth activate-service-account --key-file=gcpkey.json
- rm gcpkey.json
- cp C:\App\nssm-2.24.zip .
depends_on:
- windows-init
environment:
GCP_KEY:
from_secret: gcp_grafanauploads_base64
GITHUB_TOKEN:
from_secret: github_token
PRERELEASE_BUCKET:
from_secret: prerelease_bucket
image: grafana/ci-wix:0.1.1
name: build-windows-installer
trigger:
branch: main
event:
@ -4723,6 +4742,6 @@ kind: secret
name: gcr_credentials
---
kind: signature
hmac: e7a7b8ebee80baceff6c915e84e76f8f5e54565741f923e9e1e17f3f8880dce9
hmac: 58b77325696868ab394acaf1790f387278191c9494842d944eab1653d18ba70c
...

View File

@ -1294,6 +1294,7 @@ def get_windows_steps(ver_mode, bucket = "%PRERELEASE_BUCKET%"):
if ver_mode in (
"release",
"release-branch",
"main",
):
gcp_bucket = "{}/artifacts/downloads".format(bucket)
if ver_mode == "release":