mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
CircleCI: Install build pipeline tool from GitHub repo (#22837)
This commit is contained in:
@@ -43,17 +43,19 @@ executors:
|
|||||||
jobs:
|
jobs:
|
||||||
install-grabpl:
|
install-grabpl:
|
||||||
description: Install the Grafana Build Pipeline tool
|
description: Install the Grafana Build Pipeline tool
|
||||||
executor: cloud-sdk
|
executor: grafana-build
|
||||||
steps:
|
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 -b v0.0.2 git@github.com:grafana/build-pipeline.git
|
||||||
- run:
|
- run:
|
||||||
name: Install Grafana Build Pipeline
|
name: Install Grafana Build Pipeline
|
||||||
command: |
|
command: |
|
||||||
echo $GCP_GRAFANA_UPLOAD_KEY > /tmp/gcpkey.json
|
cd build-pipeline
|
||||||
gcloud auth activate-service-account --key-file=/tmp/gcpkey.json
|
go build -o ../bin/grabpl ./cmd/grabpl
|
||||||
|
|
||||||
mkdir bin
|
|
||||||
gsutil cp gs://grafana-build-pipeline/grafana-build-pipeline-0.0.2/grabpl bin/grabpl
|
|
||||||
chmod +x bin/grabpl
|
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
Reference in New Issue
Block a user