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
d6a645aa
Unverified
Commit
d6a645aa
authored
Nov 18, 2020
by
Arve Knudsen
Committed by
GitHub
Nov 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drone: Fix publish-packages invocation (#29179)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
parent
f28ba27c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
59 deletions
+52
-59
.drone.yml
+21
-43
scripts/lib.star
+16
-13
scripts/release.star
+15
-3
No files found.
.drone.yml
View file @
d6a645aa
...
...
@@ -524,14 +524,6 @@ steps:
environment
:
GCP_GRAFANA_UPLOAD_KEY
:
from_secret
:
gcp_key
GPG_KEY_PASSWORD
:
from_secret
:
gpg_key_password
GPG_PRIV_KEY
:
from_secret
:
gpg_priv_key
GPG_PUB_KEY
:
from_secret
:
gpg_pub_key
GRAFANA_COM_API_KEY
:
from_secret
:
grafana_api_key
depends_on
:
-
package
-
end-to-end-tests
...
...
@@ -639,8 +631,17 @@ steps:
-
name
:
publish-packages
image
:
grafana/grafana-ci-deploy:1.2.7
commands
:
-
./bin/grabpl publish-packages --edition oss --build-id ${DRONE_BUILD_NUMBER}
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
./bin/grabpl publish-packages --edition oss --gcp-key /tmp/gcpkey.json --build-id ${DRONE_BUILD_NUMBER}
environment
:
GCP_KEY
:
from_secret
:
gcp_key
GPG_KEY_PASSWORD
:
from_secret
:
gpg_key_password
GPG_PRIV_KEY
:
from_secret
:
gpg_priv_key
GPG_PUB_KEY
:
from_secret
:
gpg_pub_key
GRAFANA_COM_API_KEY
:
from_secret
:
grafana_api_key
depends_on
:
...
...
@@ -926,14 +927,6 @@ steps:
environment
:
GCP_GRAFANA_UPLOAD_KEY
:
from_secret
:
gcp_key
GPG_KEY_PASSWORD
:
from_secret
:
gpg_key_password
GPG_PRIV_KEY
:
from_secret
:
gpg_priv_key
GPG_PUB_KEY
:
from_secret
:
gpg_pub_key
GRAFANA_COM_API_KEY
:
from_secret
:
grafana_api_key
depends_on
:
-
package
-
end-to-end-tests
...
...
@@ -1284,14 +1277,6 @@ steps:
environment
:
GCP_GRAFANA_UPLOAD_KEY
:
from_secret
:
gcp_key
GPG_KEY_PASSWORD
:
from_secret
:
gpg_key_password
GPG_PRIV_KEY
:
from_secret
:
gpg_priv_key
GPG_PUB_KEY
:
from_secret
:
gpg_pub_key
GRAFANA_COM_API_KEY
:
from_secret
:
grafana_api_key
depends_on
:
-
package
-
end-to-end-tests
...
...
@@ -1417,9 +1402,18 @@ steps:
-
name
:
publish-packages
image
:
grafana/grafana-ci-deploy:1.2.7
commands
:
-
./bin/grabpl publish-packages --edition oss ${DRONE_TAG}
-
./bin/grabpl publish-packages --edition enterprise ${DRONE_TAG}
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
./bin/grabpl publish-packages --edition oss --gcp-key /tmp/gcpkey.json ${DRONE_TAG}
-
./bin/grabpl publish-packages --edition enterprise --gcp-key /tmp/gcpkey.json ${DRONE_TAG}
environment
:
GCP_KEY
:
from_secret
:
gcp_key
GPG_KEY_PASSWORD
:
from_secret
:
gpg_key_password
GPG_PRIV_KEY
:
from_secret
:
gpg_priv_key
GPG_PUB_KEY
:
from_secret
:
gpg_pub_key
GRAFANA_COM_API_KEY
:
from_secret
:
grafana_api_key
depends_on
:
...
...
@@ -1699,14 +1693,6 @@ steps:
environment
:
GCP_GRAFANA_UPLOAD_KEY
:
from_secret
:
gcp_key
GPG_KEY_PASSWORD
:
from_secret
:
gpg_key_password
GPG_PRIV_KEY
:
from_secret
:
gpg_priv_key
GPG_PUB_KEY
:
from_secret
:
gpg_pub_key
GRAFANA_COM_API_KEY
:
from_secret
:
grafana_api_key
depends_on
:
-
package
-
end-to-end-tests
...
...
@@ -2047,14 +2033,6 @@ steps:
environment
:
GCP_GRAFANA_UPLOAD_KEY
:
from_secret
:
gcp_key
GPG_KEY_PASSWORD
:
from_secret
:
gpg_key_password
GPG_PRIV_KEY
:
from_secret
:
gpg_priv_key
GPG_PUB_KEY
:
from_secret
:
gpg_pub_key
GRAFANA_COM_API_KEY
:
from_secret
:
grafana_api_key
depends_on
:
-
package
-
end-to-end-tests
...
...
scripts/lib.star
View file @
d6a645aa
...
...
@@ -799,18 +799,6 @@ def upload_packages_step(edition, ver_mode, is_downstream=False):
'GCP_GRAFANA_UPLOAD_KEY': {
'from_secret': 'gcp_key',
},
'GRAFANA_COM_API_KEY': {
'from_secret': 'grafana_api_key',
},
'GPG_PRIV_KEY': {
'from_secret': 'gpg_priv_key',
},
'GPG_PUB_KEY': {
'from_secret': 'gpg_pub_key',
},
'GPG_KEY_PASSWORD': {
'from_secret': 'gpg_key_password',
},
},
'commands': [cmd,],
}
...
...
@@ -834,9 +822,24 @@ def publish_packages_step(edition, is_downstream):
'GRAFANA_COM_API_KEY': {
'from_secret': 'grafana_api_key',
},
'GCP_KEY': {
'from_secret': 'gcp_key',
},
'GPG_PRIV_KEY': {
'from_secret': 'gpg_priv_key',
},
'GPG_PUB_KEY': {
'from_secret': 'gpg_pub_key',
},
'GPG_KEY_PASSWORD': {
'from_secret': 'gpg_key_password',
},
},
'commands': [
'./bin/grabpl publish-packages --edition {} --build-id {}'.format(edition, build_no),
'printenv GCP_KEY | base64 -d > /tmp/gcpkey.json',
'./bin/grabpl publish-packages --edition {} --gcp-key /tmp/gcpkey.json --build-id {}'.format(
edition, build_no,
),
],
}
...
...
scripts/release.star
View file @
d6a645aa
...
...
@@ -26,7 +26,6 @@ load(
'frontend_metrics_step',
'publish_storybook_step',
'upload_packages_step',
'publish_packages_step',
'notify_pipeline',
'integration_test_services',
)
...
...
@@ -143,10 +142,23 @@ def release_pipelines(ver_mode='release', trigger=None):
'GRAFANA_COM_API_KEY': {
'from_secret': 'grafana_api_key',
},
'GCP_KEY': {
'from_secret': 'gcp_key',
},
'GPG_PRIV_KEY': {
'from_secret': 'gpg_priv_key',
},
'GPG_PUB_KEY': {
'from_secret': 'gpg_pub_key',
},
'GPG_KEY_PASSWORD': {
'from_secret': 'gpg_key_password',
},
},
'commands': [
'./bin/grabpl publish-packages --edition oss ${DRONE_TAG}',
'./bin/grabpl publish-packages --edition enterprise ${DRONE_TAG}',
'printenv GCP_KEY | base64 -d > /tmp/gcpkey.json',
'./bin/grabpl publish-packages --edition oss --gcp-key /tmp/gcpkey.json ${DRONE_TAG}',
'./bin/grabpl publish-packages --edition enterprise --gcp-key /tmp/gcpkey.json ${DRONE_TAG}',
],
},
], depends_on=[p['name'] for p in oss_pipelines + enterprise_pipelines], install_deps=False,
...
...
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