mirror of
https://github.com/grafana/grafana.git
synced 2025-12-22 04:34:27 +08:00
Compare commits
4 Commits
docs/add-d
...
v0.0.0-tes
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e3398b36a2 | ||
|
|
55cbfb4544 | ||
|
|
d2eada78d8 | ||
|
|
5432e007e3 |
68
.drone.yml
68
.drone.yml
@@ -761,7 +761,7 @@ steps:
|
|||||||
- compile-build-cmd
|
- compile-build-cmd
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
image: google/cloud-sdk:431.0.0
|
image: google/cloud-sdk:431.0.0
|
||||||
name: build-docker-images
|
name: build-docker-images
|
||||||
volumes:
|
volumes:
|
||||||
@@ -774,7 +774,7 @@ steps:
|
|||||||
- compile-build-cmd
|
- compile-build-cmd
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
image: google/cloud-sdk:431.0.0
|
image: google/cloud-sdk:431.0.0
|
||||||
name: build-docker-images-ubuntu
|
name: build-docker-images-ubuntu
|
||||||
volumes:
|
volumes:
|
||||||
@@ -1940,7 +1940,7 @@ steps:
|
|||||||
- end-to-end-tests-various-suite
|
- end-to-end-tests-various-suite
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
PRERELEASE_BUCKET:
|
PRERELEASE_BUCKET:
|
||||||
from_secret: prerelease_bucket
|
from_secret: prerelease_bucket
|
||||||
image: grafana/grafana-ci-deploy:1.3.3
|
image: grafana/grafana-ci-deploy:1.3.3
|
||||||
@@ -1971,7 +1971,7 @@ steps:
|
|||||||
- compile-build-cmd
|
- compile-build-cmd
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
image: google/cloud-sdk:431.0.0
|
image: google/cloud-sdk:431.0.0
|
||||||
name: build-docker-images
|
name: build-docker-images
|
||||||
volumes:
|
volumes:
|
||||||
@@ -1984,7 +1984,7 @@ steps:
|
|||||||
- compile-build-cmd
|
- compile-build-cmd
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
image: google/cloud-sdk:431.0.0
|
image: google/cloud-sdk:431.0.0
|
||||||
name: build-docker-images-ubuntu
|
name: build-docker-images-ubuntu
|
||||||
volumes:
|
volumes:
|
||||||
@@ -2001,7 +2001,7 @@ steps:
|
|||||||
DOCKER_USER:
|
DOCKER_USER:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
GITHUB_APP_ID:
|
GITHUB_APP_ID:
|
||||||
from_secret: delivery-bot-app-id
|
from_secret: delivery-bot-app-id
|
||||||
GITHUB_APP_INSTALLATION_ID:
|
GITHUB_APP_INSTALLATION_ID:
|
||||||
@@ -2027,7 +2027,7 @@ steps:
|
|||||||
DOCKER_USER:
|
DOCKER_USER:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
GITHUB_APP_ID:
|
GITHUB_APP_ID:
|
||||||
from_secret: delivery-bot-app-id
|
from_secret: delivery-bot-app-id
|
||||||
GITHUB_APP_INSTALLATION_ID:
|
GITHUB_APP_INSTALLATION_ID:
|
||||||
@@ -2069,7 +2069,7 @@ steps:
|
|||||||
- end-to-end-tests-various-suite
|
- end-to-end-tests-various-suite
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
PRERELEASE_BUCKET:
|
PRERELEASE_BUCKET:
|
||||||
from_secret: prerelease_bucket
|
from_secret: prerelease_bucket
|
||||||
image: grafana/grafana-ci-deploy:1.3.3
|
image: grafana/grafana-ci-deploy:1.3.3
|
||||||
@@ -2083,7 +2083,7 @@ steps:
|
|||||||
- grafana-server
|
- grafana-server
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
PRERELEASE_BUCKET:
|
PRERELEASE_BUCKET:
|
||||||
from_secret: prerelease_bucket
|
from_secret: prerelease_bucket
|
||||||
image: grafana/grafana-ci-deploy:1.3.3
|
image: grafana/grafana-ci-deploy:1.3.3
|
||||||
@@ -2626,7 +2626,7 @@ steps:
|
|||||||
- compile-build-cmd
|
- compile-build-cmd
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
image: google/cloud-sdk:431.0.0
|
image: google/cloud-sdk:431.0.0
|
||||||
name: build-docker-images
|
name: build-docker-images
|
||||||
volumes:
|
volumes:
|
||||||
@@ -2639,7 +2639,7 @@ steps:
|
|||||||
- compile-build-cmd
|
- compile-build-cmd
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
image: google/cloud-sdk:431.0.0
|
image: google/cloud-sdk:431.0.0
|
||||||
name: build-docker-images-ubuntu
|
name: build-docker-images-ubuntu
|
||||||
volumes:
|
volumes:
|
||||||
@@ -2744,7 +2744,7 @@ steps:
|
|||||||
- grafana-server
|
- grafana-server
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
PRERELEASE_BUCKET:
|
PRERELEASE_BUCKET:
|
||||||
from_secret: prerelease_bucket
|
from_secret: prerelease_bucket
|
||||||
image: grafana/grafana-ci-deploy:1.3.3
|
image: grafana/grafana-ci-deploy:1.3.3
|
||||||
@@ -2758,7 +2758,7 @@ steps:
|
|||||||
- end-to-end-tests-various-suite
|
- end-to-end-tests-various-suite
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
PRERELEASE_BUCKET:
|
PRERELEASE_BUCKET:
|
||||||
from_secret: prerelease_bucket
|
from_secret: prerelease_bucket
|
||||||
image: grafana/grafana-ci-deploy:1.3.3
|
image: grafana/grafana-ci-deploy:1.3.3
|
||||||
@@ -2774,7 +2774,7 @@ steps:
|
|||||||
- end-to-end-tests-various-suite
|
- end-to-end-tests-various-suite
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
PRERELEASE_BUCKET:
|
PRERELEASE_BUCKET:
|
||||||
from_secret: prerelease_bucket
|
from_secret: prerelease_bucket
|
||||||
image: grafana/grafana-ci-deploy:1.3.3
|
image: grafana/grafana-ci-deploy:1.3.3
|
||||||
@@ -2789,7 +2789,7 @@ steps:
|
|||||||
- build-frontend-packages
|
- build-frontend-packages
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
PRERELEASE_BUCKET:
|
PRERELEASE_BUCKET:
|
||||||
from_secret: prerelease_bucket
|
from_secret: prerelease_bucket
|
||||||
image: grafana/build-container:1.7.5
|
image: grafana/build-container:1.7.5
|
||||||
@@ -2977,8 +2977,7 @@ steps:
|
|||||||
name: windows-init
|
name: windows-init
|
||||||
- commands:
|
- commands:
|
||||||
- $$gcpKey = $$env:GCP_KEY
|
- $$gcpKey = $$env:GCP_KEY
|
||||||
- '[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($$gcpKey))
|
- $$gcpKey > gcpkey.json
|
||||||
> gcpkey.json'
|
|
||||||
- dos2unix gcpkey.json
|
- dos2unix gcpkey.json
|
||||||
- gcloud auth activate-service-account --key-file=gcpkey.json
|
- gcloud auth activate-service-account --key-file=gcpkey.json
|
||||||
- rm gcpkey.json
|
- rm gcpkey.json
|
||||||
@@ -2992,7 +2991,7 @@ steps:
|
|||||||
- windows-init
|
- windows-init
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
GITHUB_TOKEN:
|
GITHUB_TOKEN:
|
||||||
from_secret: github_token
|
from_secret: github_token
|
||||||
PRERELEASE_BUCKET:
|
PRERELEASE_BUCKET:
|
||||||
@@ -3057,7 +3056,7 @@ steps:
|
|||||||
DOCKER_USER:
|
DOCKER_USER:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
image: google/cloud-sdk:431.0.0
|
image: google/cloud-sdk:431.0.0
|
||||||
name: fetch-images
|
name: fetch-images
|
||||||
volumes:
|
volumes:
|
||||||
@@ -3074,7 +3073,7 @@ steps:
|
|||||||
DOCKER_USER:
|
DOCKER_USER:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
GITHUB_APP_ID:
|
GITHUB_APP_ID:
|
||||||
from_secret: delivery-bot-app-id
|
from_secret: delivery-bot-app-id
|
||||||
GITHUB_APP_INSTALLATION_ID:
|
GITHUB_APP_INSTALLATION_ID:
|
||||||
@@ -3097,7 +3096,7 @@ steps:
|
|||||||
DOCKER_USER:
|
DOCKER_USER:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
GITHUB_APP_ID:
|
GITHUB_APP_ID:
|
||||||
from_secret: delivery-bot-app-id
|
from_secret: delivery-bot-app-id
|
||||||
GITHUB_APP_INSTALLATION_ID:
|
GITHUB_APP_INSTALLATION_ID:
|
||||||
@@ -3326,7 +3325,7 @@ steps:
|
|||||||
- publish-linux-packages-rpm
|
- publish-linux-packages-rpm
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
GRAFANA_COM_API_KEY:
|
GRAFANA_COM_API_KEY:
|
||||||
from_secret: grafana_api_key
|
from_secret: grafana_api_key
|
||||||
image: grafana/grafana-ci-deploy:1.3.3
|
image: grafana/grafana-ci-deploy:1.3.3
|
||||||
@@ -3525,8 +3524,7 @@ steps:
|
|||||||
name: windows-init
|
name: windows-init
|
||||||
- commands:
|
- commands:
|
||||||
- $$gcpKey = $$env:GCP_KEY
|
- $$gcpKey = $$env:GCP_KEY
|
||||||
- '[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($$gcpKey))
|
- $$gcpKey > gcpkey.json
|
||||||
> gcpkey.json'
|
|
||||||
- dos2unix gcpkey.json
|
- dos2unix gcpkey.json
|
||||||
- gcloud auth activate-service-account --key-file=gcpkey.json
|
- gcloud auth activate-service-account --key-file=gcpkey.json
|
||||||
- rm gcpkey.json
|
- rm gcpkey.json
|
||||||
@@ -3540,7 +3538,7 @@ steps:
|
|||||||
- windows-init
|
- windows-init
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
GITHUB_TOKEN:
|
GITHUB_TOKEN:
|
||||||
from_secret: github_token
|
from_secret: github_token
|
||||||
PRERELEASE_BUCKET:
|
PRERELEASE_BUCKET:
|
||||||
@@ -3590,8 +3588,7 @@ steps:
|
|||||||
name: windows-init
|
name: windows-init
|
||||||
- commands:
|
- commands:
|
||||||
- $$gcpKey = $$env:GCP_KEY
|
- $$gcpKey = $$env:GCP_KEY
|
||||||
- '[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($$gcpKey))
|
- $$gcpKey > gcpkey.json
|
||||||
> gcpkey.json'
|
|
||||||
- dos2unix gcpkey.json
|
- dos2unix gcpkey.json
|
||||||
- gcloud auth activate-service-account --key-file=gcpkey.json
|
- gcloud auth activate-service-account --key-file=gcpkey.json
|
||||||
- rm gcpkey.json
|
- rm gcpkey.json
|
||||||
@@ -3605,7 +3602,7 @@ steps:
|
|||||||
- windows-init
|
- windows-init
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
GITHUB_TOKEN:
|
GITHUB_TOKEN:
|
||||||
from_secret: github_token
|
from_secret: github_token
|
||||||
PRERELEASE_BUCKET:
|
PRERELEASE_BUCKET:
|
||||||
@@ -3847,7 +3844,7 @@ steps:
|
|||||||
- compile-build-cmd
|
- compile-build-cmd
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
image: google/cloud-sdk:431.0.0
|
image: google/cloud-sdk:431.0.0
|
||||||
name: build-docker-images
|
name: build-docker-images
|
||||||
volumes:
|
volumes:
|
||||||
@@ -3860,7 +3857,7 @@ steps:
|
|||||||
- compile-build-cmd
|
- compile-build-cmd
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
image: google/cloud-sdk:431.0.0
|
image: google/cloud-sdk:431.0.0
|
||||||
name: build-docker-images-ubuntu
|
name: build-docker-images-ubuntu
|
||||||
volumes:
|
volumes:
|
||||||
@@ -3966,7 +3963,7 @@ steps:
|
|||||||
- grafana-server
|
- grafana-server
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
PRERELEASE_BUCKET:
|
PRERELEASE_BUCKET:
|
||||||
from_secret: prerelease_bucket
|
from_secret: prerelease_bucket
|
||||||
image: grafana/grafana-ci-deploy:1.3.3
|
image: grafana/grafana-ci-deploy:1.3.3
|
||||||
@@ -3983,7 +3980,7 @@ steps:
|
|||||||
- end-to-end-tests-various-suite
|
- end-to-end-tests-various-suite
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
PRERELEASE_BUCKET:
|
PRERELEASE_BUCKET:
|
||||||
from_secret: prerelease_bucket
|
from_secret: prerelease_bucket
|
||||||
image: grafana/grafana-ci-deploy:1.3.3
|
image: grafana/grafana-ci-deploy:1.3.3
|
||||||
@@ -4343,8 +4340,7 @@ steps:
|
|||||||
name: windows-init
|
name: windows-init
|
||||||
- commands:
|
- commands:
|
||||||
- $$gcpKey = $$env:GCP_KEY
|
- $$gcpKey = $$env:GCP_KEY
|
||||||
- '[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($$gcpKey))
|
- $$gcpKey > gcpkey.json
|
||||||
> gcpkey.json'
|
|
||||||
- dos2unix gcpkey.json
|
- dos2unix gcpkey.json
|
||||||
- gcloud auth activate-service-account --key-file=gcpkey.json
|
- gcloud auth activate-service-account --key-file=gcpkey.json
|
||||||
- rm gcpkey.json
|
- rm gcpkey.json
|
||||||
@@ -4353,7 +4349,7 @@ steps:
|
|||||||
- windows-init
|
- windows-init
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_upload_artifacts_key
|
||||||
GITHUB_TOKEN:
|
GITHUB_TOKEN:
|
||||||
from_secret: github_token
|
from_secret: github_token
|
||||||
PRERELEASE_BUCKET:
|
PRERELEASE_BUCKET:
|
||||||
@@ -5019,6 +5015,6 @@ kind: secret
|
|||||||
name: delivery-bot-app-private-key
|
name: delivery-bot-app-private-key
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 1eb4671cf92fa08539a22e82cfcf1a58573fa410df4d9512063a95e0c746fe97
|
hmac: bdb72dfd574ab2ce9c5dabd0cf8180e1c1227b142a1306fe23283ce3d9d54670
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|||||||
@@ -51,7 +51,12 @@ load(
|
|||||||
"scripts/drone/pipelines/test_backend.star",
|
"scripts/drone/pipelines/test_backend.star",
|
||||||
"test_backend",
|
"test_backend",
|
||||||
)
|
)
|
||||||
load("scripts/drone/vault.star", "from_secret", "prerelease_bucket")
|
load(
|
||||||
|
"scripts/drone/vault.star",
|
||||||
|
"from_secret",
|
||||||
|
"gcp_upload_artifacts_key",
|
||||||
|
"prerelease_bucket",
|
||||||
|
)
|
||||||
load(
|
load(
|
||||||
"scripts/drone/utils/images.star",
|
"scripts/drone/utils/images.star",
|
||||||
"images",
|
"images",
|
||||||
@@ -87,7 +92,7 @@ def store_npm_packages_step():
|
|||||||
"build-frontend-packages",
|
"build-frontend-packages",
|
||||||
],
|
],
|
||||||
"environment": {
|
"environment": {
|
||||||
"GCP_KEY": from_secret("gcp_key"),
|
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
|
||||||
"PRERELEASE_BUCKET": from_secret(prerelease_bucket),
|
"PRERELEASE_BUCKET": from_secret(prerelease_bucket),
|
||||||
},
|
},
|
||||||
"commands": ["./bin/build artifacts npm store --tag ${DRONE_TAG}"],
|
"commands": ["./bin/build artifacts npm store --tag ${DRONE_TAG}"],
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ This module is a library of Drone steps and other pipeline components.
|
|||||||
load(
|
load(
|
||||||
"scripts/drone/vault.star",
|
"scripts/drone/vault.star",
|
||||||
"from_secret",
|
"from_secret",
|
||||||
|
"gcp_upload_artifacts_key",
|
||||||
"prerelease_bucket",
|
"prerelease_bucket",
|
||||||
)
|
)
|
||||||
load(
|
load(
|
||||||
@@ -330,7 +331,7 @@ def store_storybook_step(ver_mode, trigger = None):
|
|||||||
] +
|
] +
|
||||||
end_to_end_tests_deps(),
|
end_to_end_tests_deps(),
|
||||||
"environment": {
|
"environment": {
|
||||||
"GCP_KEY": from_secret("gcp_key"),
|
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
|
||||||
"PRERELEASE_BUCKET": from_secret(prerelease_bucket),
|
"PRERELEASE_BUCKET": from_secret(prerelease_bucket),
|
||||||
},
|
},
|
||||||
"commands": commands,
|
"commands": commands,
|
||||||
@@ -369,7 +370,7 @@ def e2e_tests_artifacts():
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"environment": {
|
"environment": {
|
||||||
"GCP_GRAFANA_UPLOAD_ARTIFACTS_KEY": from_secret("gcp_upload_artifacts_key"),
|
"GCP_GRAFANA_UPLOAD_ARTIFACTS_KEY": from_secret(gcp_upload_artifacts_key),
|
||||||
"E2E_TEST_ARTIFACTS_BUCKET": "releng-pipeline-artifacts-dev",
|
"E2E_TEST_ARTIFACTS_BUCKET": "releng-pipeline-artifacts-dev",
|
||||||
"GITHUB_TOKEN": from_secret("github_token"),
|
"GITHUB_TOKEN": from_secret("github_token"),
|
||||||
},
|
},
|
||||||
@@ -407,7 +408,7 @@ def upload_cdn_step(ver_mode, trigger = None):
|
|||||||
"grafana-server",
|
"grafana-server",
|
||||||
],
|
],
|
||||||
"environment": {
|
"environment": {
|
||||||
"GCP_KEY": from_secret("gcp_key"),
|
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
|
||||||
"PRERELEASE_BUCKET": from_secret(prerelease_bucket),
|
"PRERELEASE_BUCKET": from_secret(prerelease_bucket),
|
||||||
},
|
},
|
||||||
"commands": [
|
"commands": [
|
||||||
@@ -954,7 +955,7 @@ def build_docker_images_step(archs = None, ubuntu = False, publish = False):
|
|||||||
cmd += " -archs {}".format(",".join(archs))
|
cmd += " -archs {}".format(",".join(archs))
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
"GCP_KEY": from_secret("gcp_key"),
|
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -974,7 +975,7 @@ def fetch_images_step():
|
|||||||
"name": "fetch-images",
|
"name": "fetch-images",
|
||||||
"image": images["cloudsdk_image"],
|
"image": images["cloudsdk_image"],
|
||||||
"environment": {
|
"environment": {
|
||||||
"GCP_KEY": from_secret("gcp_key"),
|
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
|
||||||
"DOCKER_USER": from_secret("docker_username"),
|
"DOCKER_USER": from_secret("docker_username"),
|
||||||
"DOCKER_PASSWORD": from_secret("docker_password"),
|
"DOCKER_PASSWORD": from_secret("docker_password"),
|
||||||
},
|
},
|
||||||
@@ -1001,7 +1002,7 @@ def publish_images_step(ver_mode, docker_repo, trigger = None):
|
|||||||
docker_repo = "grafana/{}".format(docker_repo)
|
docker_repo = "grafana/{}".format(docker_repo)
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
"GCP_KEY": from_secret("gcp_key"),
|
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
|
||||||
"DOCKER_USER": from_secret("docker_username"),
|
"DOCKER_USER": from_secret("docker_username"),
|
||||||
"DOCKER_PASSWORD": from_secret("docker_password"),
|
"DOCKER_PASSWORD": from_secret("docker_password"),
|
||||||
"GITHUB_APP_ID": from_secret("delivery-bot-app-id"),
|
"GITHUB_APP_ID": from_secret("delivery-bot-app-id"),
|
||||||
@@ -1177,7 +1178,7 @@ def upload_packages_step(ver_mode, trigger = None):
|
|||||||
"image": images["publish_image"],
|
"image": images["publish_image"],
|
||||||
"depends_on": end_to_end_tests_deps(),
|
"depends_on": end_to_end_tests_deps(),
|
||||||
"environment": {
|
"environment": {
|
||||||
"GCP_KEY": from_secret("gcp_key"),
|
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
|
||||||
"PRERELEASE_BUCKET": from_secret("prerelease_bucket"),
|
"PRERELEASE_BUCKET": from_secret("prerelease_bucket"),
|
||||||
},
|
},
|
||||||
"commands": [
|
"commands": [
|
||||||
@@ -1219,7 +1220,7 @@ def publish_grafanacom_step(ver_mode):
|
|||||||
],
|
],
|
||||||
"environment": {
|
"environment": {
|
||||||
"GRAFANA_COM_API_KEY": from_secret("grafana_api_key"),
|
"GRAFANA_COM_API_KEY": from_secret("grafana_api_key"),
|
||||||
"GCP_KEY": from_secret("gcp_key"),
|
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
|
||||||
},
|
},
|
||||||
"commands": [
|
"commands": [
|
||||||
cmd,
|
cmd,
|
||||||
@@ -1308,7 +1309,7 @@ def get_windows_steps(ver_mode, bucket = "%PRERELEASE_BUCKET%", edition = "oss")
|
|||||||
ver_part = "--build-id $$env:{}".format(build_no)
|
ver_part = "--build-id $$env:{}".format(build_no)
|
||||||
installer_commands = [
|
installer_commands = [
|
||||||
"$$gcpKey = $$env:GCP_KEY",
|
"$$gcpKey = $$env:GCP_KEY",
|
||||||
"[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($$gcpKey)) > gcpkey.json",
|
"$$gcpKey > gcpkey.json",
|
||||||
# gcloud fails to read the file unless converted with dos2unix
|
# gcloud fails to read the file unless converted with dos2unix
|
||||||
"dos2unix gcpkey.json",
|
"dos2unix gcpkey.json",
|
||||||
"gcloud auth activate-service-account --key-file=gcpkey.json",
|
"gcloud auth activate-service-account --key-file=gcpkey.json",
|
||||||
@@ -1368,7 +1369,7 @@ def get_windows_steps(ver_mode, bucket = "%PRERELEASE_BUCKET%", edition = "oss")
|
|||||||
"windows-init",
|
"windows-init",
|
||||||
],
|
],
|
||||||
"environment": {
|
"environment": {
|
||||||
"GCP_KEY": from_secret("gcp_key"),
|
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
|
||||||
"PRERELEASE_BUCKET": from_secret(prerelease_bucket),
|
"PRERELEASE_BUCKET": from_secret(prerelease_bucket),
|
||||||
"GITHUB_TOKEN": from_secret("github_token"),
|
"GITHUB_TOKEN": from_secret("github_token"),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user