Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
26ac6728
Unverified
Commit
26ac6728
authored
Oct 08, 2020
by
Arve Knudsen
Committed by
GitHub
Oct 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drone: Fix test-release pipeline (#28108)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
parent
3af19335
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
.drone.yml
+6
-6
scripts/lib.star
+7
-3
No files found.
.drone.yml
View file @
26ac6728
...
...
@@ -1772,10 +1772,10 @@ steps:
-
gcloud auth activate-service-account --key-file=gcpkey.json
-
rm gcpkey.json
-
cp C:\App\nssm-2.24.zip .
-
.\grabpl.exe windows-installer --edition oss v7.3.0-test
-
.\grabpl.exe windows-installer --edition oss
--packages-bucket grafana-downloads-test
v7.3.0-test
-
$$fname = ((Get-Childitem grafana*.msi -name) -split "`n")[0]
-
gsutil cp $$fname gs://grafana-downloads/oss/release/
-
gsutil cp "$$fname.sha256" gs://grafana-downloads/oss/release/
-
gsutil cp $$fname gs://grafana-downloads
-test
/oss/release/
-
gsutil cp "$$fname.sha256" gs://grafana-downloads
-test
/oss/release/
environment
:
GCP_KEY
:
from_secret
:
gcp_key
...
...
@@ -2113,10 +2113,10 @@ steps:
-
gcloud auth activate-service-account --key-file=gcpkey.json
-
rm gcpkey.json
-
cp C:\App\nssm-2.24.zip .
-
.\grabpl.exe windows-installer --edition enterprise v7.3.0-test
-
.\grabpl.exe windows-installer --edition enterprise
--packages-bucket grafana-downloads-test
v7.3.0-test
-
$$fname = ((Get-Childitem grafana*.msi -name) -split "`n")[0]
-
gsutil cp $$fname gs://grafana-downloads/enterprise/release/
-
gsutil cp "$$fname.sha256" gs://grafana-downloads/enterprise/release/
-
gsutil cp $$fname gs://grafana-downloads
-test
/enterprise/release/
-
gsutil cp "$$fname.sha256" gs://grafana-downloads
-test
/enterprise/release/
environment
:
GCP_KEY
:
from_secret
:
gcp_key
...
...
scripts/lib.star
View file @
26ac6728
...
...
@@ -828,12 +828,16 @@ def get_windows_steps(edition, ver_mode, is_downstream=False):
},
]
if (ver_mode == 'master' and (edition != 'enterprise' or is_downstream)) or ver_mode in ('release', 'test-release'):
bucket_part = ''
bucket = 'grafana-downloads'
if ver_mode == 'release':
ver_part = '$$env:DRONE_TAG'
dir = 'release'
elif ver_mode == 'test-release':
ver_part = test_release_ver
dir = 'release'
bucket = 'grafana-downloads-test'
bucket_part = ' --packages-bucket grafana-downloads-test'
else:
dir = 'master'
if not is_downstream:
...
...
@@ -849,10 +853,10 @@ def get_windows_steps(edition, ver_mode, is_downstream=False):
'gcloud auth activate-service-account --key-file=gcpkey.json',
'rm gcpkey.json',
'cp C:\\App\\nssm-2.24.zip .',
'.\\grabpl.exe windows-installer --edition {}
{}'.format(edition
, ver_part),
'.\\grabpl.exe windows-installer --edition {}
{} {}'.format(edition, bucket_part
, ver_part),
'$$fname = ((Get-Childitem grafana*.msi -name) -split "`n")[0]',
'gsutil cp $$fname gs://
grafana-downloads/{}/{}/'.format(
edition, dir),
'gsutil cp "$$fname.sha256" gs://
grafana-downloads/{}/{}/'.format(
edition, dir),
'gsutil cp $$fname gs://
{}/{}/{}/'.format(bucket,
edition, dir),
'gsutil cp "$$fname.sha256" gs://
{}/{}/{}/'.format(bucket,
edition, dir),
]
steps.append({
'name': 'build-windows-installer',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment