From 55cbfb4544a3cce622692601203a4d7ce3e0fe19 Mon Sep 17 00:00:00 2001 From: Kevin Minehart Date: Thu, 20 Jul 2023 09:20:53 -0500 Subject: [PATCH] Try using it everywhere? --- .drone.yml | 48 ++++++++++++++++++------------------ scripts/drone/steps/lib.star | 16 ++++++------ 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.drone.yml b/.drone.yml index 481d0f2e104..91e2cf59378 100644 --- a/.drone.yml +++ b/.drone.yml @@ -761,7 +761,7 @@ steps: - compile-build-cmd environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key image: google/cloud-sdk:431.0.0 name: build-docker-images volumes: @@ -774,7 +774,7 @@ steps: - compile-build-cmd environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key image: google/cloud-sdk:431.0.0 name: build-docker-images-ubuntu volumes: @@ -1940,7 +1940,7 @@ steps: - end-to-end-tests-various-suite environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key PRERELEASE_BUCKET: from_secret: prerelease_bucket image: grafana/grafana-ci-deploy:1.3.3 @@ -1971,7 +1971,7 @@ steps: - compile-build-cmd environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key image: google/cloud-sdk:431.0.0 name: build-docker-images volumes: @@ -1984,7 +1984,7 @@ steps: - compile-build-cmd environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key image: google/cloud-sdk:431.0.0 name: build-docker-images-ubuntu volumes: @@ -2001,7 +2001,7 @@ steps: DOCKER_USER: from_secret: docker_username GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key GITHUB_APP_ID: from_secret: delivery-bot-app-id GITHUB_APP_INSTALLATION_ID: @@ -2027,7 +2027,7 @@ steps: DOCKER_USER: from_secret: docker_username GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key GITHUB_APP_ID: from_secret: delivery-bot-app-id GITHUB_APP_INSTALLATION_ID: @@ -2069,7 +2069,7 @@ steps: - end-to-end-tests-various-suite environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key PRERELEASE_BUCKET: from_secret: prerelease_bucket image: grafana/grafana-ci-deploy:1.3.3 @@ -2626,7 +2626,7 @@ steps: - compile-build-cmd environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key image: google/cloud-sdk:431.0.0 name: build-docker-images volumes: @@ -2639,7 +2639,7 @@ steps: - compile-build-cmd environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key image: google/cloud-sdk:431.0.0 name: build-docker-images-ubuntu volumes: @@ -2758,7 +2758,7 @@ steps: - end-to-end-tests-various-suite environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key PRERELEASE_BUCKET: from_secret: prerelease_bucket image: grafana/grafana-ci-deploy:1.3.3 @@ -2774,7 +2774,7 @@ steps: - end-to-end-tests-various-suite environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key PRERELEASE_BUCKET: from_secret: prerelease_bucket image: grafana/grafana-ci-deploy:1.3.3 @@ -2992,7 +2992,7 @@ steps: - windows-init environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key GITHUB_TOKEN: from_secret: github_token PRERELEASE_BUCKET: @@ -3057,7 +3057,7 @@ steps: DOCKER_USER: from_secret: docker_username GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key image: google/cloud-sdk:431.0.0 name: fetch-images volumes: @@ -3074,7 +3074,7 @@ steps: DOCKER_USER: from_secret: docker_username GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key GITHUB_APP_ID: from_secret: delivery-bot-app-id GITHUB_APP_INSTALLATION_ID: @@ -3097,7 +3097,7 @@ steps: DOCKER_USER: from_secret: docker_username GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key GITHUB_APP_ID: from_secret: delivery-bot-app-id GITHUB_APP_INSTALLATION_ID: @@ -3326,7 +3326,7 @@ steps: - publish-linux-packages-rpm environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key GRAFANA_COM_API_KEY: from_secret: grafana_api_key image: grafana/grafana-ci-deploy:1.3.3 @@ -3540,7 +3540,7 @@ steps: - windows-init environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key GITHUB_TOKEN: from_secret: github_token PRERELEASE_BUCKET: @@ -3605,7 +3605,7 @@ steps: - windows-init environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key GITHUB_TOKEN: from_secret: github_token PRERELEASE_BUCKET: @@ -3847,7 +3847,7 @@ steps: - compile-build-cmd environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key image: google/cloud-sdk:431.0.0 name: build-docker-images volumes: @@ -3860,7 +3860,7 @@ steps: - compile-build-cmd environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key image: google/cloud-sdk:431.0.0 name: build-docker-images-ubuntu volumes: @@ -3983,7 +3983,7 @@ steps: - end-to-end-tests-various-suite environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key PRERELEASE_BUCKET: from_secret: prerelease_bucket image: grafana/grafana-ci-deploy:1.3.3 @@ -4353,7 +4353,7 @@ steps: - windows-init environment: GCP_KEY: - from_secret: gcp_key + from_secret: gcp_upload_artifacts_key GITHUB_TOKEN: from_secret: github_token PRERELEASE_BUCKET: @@ -5019,6 +5019,6 @@ kind: secret name: delivery-bot-app-private-key --- kind: signature -hmac: 167670c0d4d875110f2d6268cc301b131e5e530fedf79fe80157ebd90e13813d +hmac: e88a3047df33738d302db2e0e4357cc4e1abbda7416cfbd9c5aa8c6ece08c596 ... diff --git a/scripts/drone/steps/lib.star b/scripts/drone/steps/lib.star index 2dec34a0cb6..8524ebf98b3 100644 --- a/scripts/drone/steps/lib.star +++ b/scripts/drone/steps/lib.star @@ -331,7 +331,7 @@ def store_storybook_step(ver_mode, trigger = None): ] + end_to_end_tests_deps(), "environment": { - "GCP_KEY": from_secret("gcp_key"), + "GCP_KEY": from_secret(gcp_upload_artifacts_key), "PRERELEASE_BUCKET": from_secret(prerelease_bucket), }, "commands": commands, @@ -370,7 +370,7 @@ def e2e_tests_artifacts(): ], }, "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", "GITHUB_TOKEN": from_secret("github_token"), }, @@ -955,7 +955,7 @@ def build_docker_images_step(archs = None, ubuntu = False, publish = False): cmd += " -archs {}".format(",".join(archs)) environment = { - "GCP_KEY": from_secret("gcp_key"), + "GCP_KEY": from_secret(gcp_upload_artifacts_key), } return { @@ -975,7 +975,7 @@ def fetch_images_step(): "name": "fetch-images", "image": images["cloudsdk_image"], "environment": { - "GCP_KEY": from_secret("gcp_key"), + "GCP_KEY": from_secret(gcp_upload_artifacts_key), "DOCKER_USER": from_secret("docker_username"), "DOCKER_PASSWORD": from_secret("docker_password"), }, @@ -1002,7 +1002,7 @@ def publish_images_step(ver_mode, docker_repo, trigger = None): docker_repo = "grafana/{}".format(docker_repo) environment = { - "GCP_KEY": from_secret("gcp_key"), + "GCP_KEY": from_secret(gcp_upload_artifacts_key), "DOCKER_USER": from_secret("docker_username"), "DOCKER_PASSWORD": from_secret("docker_password"), "GITHUB_APP_ID": from_secret("delivery-bot-app-id"), @@ -1178,7 +1178,7 @@ def upload_packages_step(ver_mode, trigger = None): "image": images["publish_image"], "depends_on": end_to_end_tests_deps(), "environment": { - "GCP_KEY": from_secret("gcp_key"), + "GCP_KEY": from_secret(gcp_upload_artifacts_key), "PRERELEASE_BUCKET": from_secret("prerelease_bucket"), }, "commands": [ @@ -1220,7 +1220,7 @@ def publish_grafanacom_step(ver_mode): ], "environment": { "GRAFANA_COM_API_KEY": from_secret("grafana_api_key"), - "GCP_KEY": from_secret("gcp_key"), + "GCP_KEY": from_secret(gcp_upload_artifacts_key), }, "commands": [ cmd, @@ -1369,7 +1369,7 @@ def get_windows_steps(ver_mode, bucket = "%PRERELEASE_BUCKET%", edition = "oss") "windows-init", ], "environment": { - "GCP_KEY": from_secret("gcp_key"), + "GCP_KEY": from_secret(gcp_upload_artifacts_key), "PRERELEASE_BUCKET": from_secret(prerelease_bucket), "GITHUB_TOKEN": from_secret("github_token"), },