From 67fc251fef0bb2bae6e04d7dbda1a72b0145b4bd Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Tue, 17 Mar 2020 11:00:23 +0100 Subject: [PATCH] CircleCI: Download grabpl from GCS (#22828) * CircleCI: Download grabpl from GCS Signed-off-by: Arve Knudsen * CircleCI: Fix installation of grabpl Signed-off-by: Arve Knudsen --- .circleci/config.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d5cde61763c..568d02cecd5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -43,19 +43,17 @@ executors: jobs: install-grabpl: description: Install the Grafana Build Pipeline tool - executor: grafana-build + executor: cloud-sdk steps: - - run: - name: Clone repo - command: | - mkdir -p ~/.ssh - echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==' >> ~/.ssh/known_hosts - git clone git@github.com:grafana/build-pipeline.git - run: name: Install Grafana Build Pipeline command: | - cd build-pipeline - go build -o ../bin/grabpl ./cmd/grabpl + echo $GCP_GRAFANA_UPLOAD_KEY > /tmp/gcpkey.json + gcloud auth activate-service-account --key-file=/tmp/gcpkey.json + + mkdir bin + gsutil cp gs://grafana-build-pipeline/grafana-build-pipeline-0.0.2/grabpl bin/grabpl + chmod +x bin/grabpl - persist_to_workspace: root: . paths: