From 824eb94efecd7d3516e0a65adc484d4c1b503623 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Tue, 12 May 2020 21:06:24 +0200 Subject: [PATCH] CircleCI: Update grabpl to 0.4.5 in order to include manifest with GEL (#24577) * CircleCI: Update grabpl to 0.4.5 * GEL: Upgrade version --- .circleci/config.yml | 33 +++++++++++++++++++++++---------- plugins-bundled/external.json | 4 ++-- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f9859a01f90..f00bfea3ea6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -54,7 +54,7 @@ commands: - run: name: "Install Grafana build pipeline tool" command: | - VERSION=0.4.4 + VERSION=0.4.5 curl -fLO https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v${VERSION}/grabpl chmod +x grabpl mv grabpl /tmp @@ -398,19 +398,25 @@ jobs: source scripts/build/gpg-test-vars.sh fi + # Necessary for signing bundled plugins + export GRAFANA_API_KEY=$GRAFANA_COM_API_KEY if [[ -n $CIRCLE_TAG ]]; then # A release build - /tmp/grabpl package --jobs 2 --edition oss $CIRCLE_TAG + /tmp/grabpl package --jobs 2 --edition oss --sign $CIRCLE_TAG elif [[ $CIRCLE_BRANCH == "chore/test-release-pipeline" ]]; then # We're testing the release pipeline - /tmp/grabpl package --jobs 2 --edition oss v6.7.0-beta1 + /tmp/grabpl package --jobs 2 --edition oss --sign v6.7.0-beta1 elif [[ $CIRCLE_BRANCH == "master" ]]; then # A master build - /tmp/grabpl package --jobs 2 --edition oss --build-id $CIRCLE_WORKFLOW_ID - else - # A PR build + /tmp/grabpl package --jobs 2 --edition oss --sign --build-id $CIRCLE_WORKFLOW_ID + elif [[ -n "$CIRCLE_PR_NUMBER" ]]; then + # A forked forked PR build, don't sign as it requires an API secret /tmp/grabpl package --jobs 2 --edition oss --build-id $CIRCLE_WORKFLOW_ID --variants \ linux-x64,linux-x64-musl,osx64,win64 + else + # A non-forked PR build + /tmp/grabpl package --jobs 2 --edition oss --sign --build-id $CIRCLE_WORKFLOW_ID --variants \ + linux-x64,linux-x64-musl,osx64,win64 fi - run: name: Move artifacts @@ -453,18 +459,25 @@ jobs: - run: name: Package Grafana command: | + # Necessary for signing bundled plugins + export GRAFANA_API_KEY=$GRAFANA_COM_API_KEY + if [[ -n $CIRCLE_TAG ]]; then # A release build - /tmp/grabpl package --jobs 2 --edition enterprise $CIRCLE_TAG + /tmp/grabpl package --jobs 2 --edition enterprise --sign $CIRCLE_TAG elif [[ $CIRCLE_BRANCH == "chore/test-release-pipeline" ]]; then # We're testing the release pipeline - /tmp/grabpl package --jobs 2 --edition enterprise v6.7.0-beta1 + /tmp/grabpl package --jobs 2 --edition enterprise --sign v6.7.0-beta1 elif [[ $CIRCLE_BRANCH == "master" ]]; then # A master build - /tmp/grabpl package --jobs 2 --edition enterprise --build-id $CIRCLE_WORKFLOW_ID + /tmp/grabpl package --jobs 2 --edition enterprise --sign --build-id $CIRCLE_WORKFLOW_ID + elif [[ -n "$CIRCLE_PR_NUMBER" ]]; then + # A forked forked PR build, don't sign as it requires an API secret + /tmp/grabpl package --jobs 2 --edition enterprise --build-id $CIRCLE_WORKFLOW_ID --variants \ + linux-x64,linux-x64-musl,osx64,win64 else # A PR build - /tmp/grabpl package --jobs 2 --edition enterprise --build-id $CIRCLE_WORKFLOW_ID --variants \ + /tmp/grabpl package --jobs 2 --edition enterprise --sign --build-id $CIRCLE_WORKFLOW_ID --variants \ linux-x64,linux-x64-musl,osx64,win64 fi - run: diff --git a/plugins-bundled/external.json b/plugins-bundled/external.json index 6760ba96b5b..ecc498af42d 100644 --- a/plugins-bundled/external.json +++ b/plugins-bundled/external.json @@ -2,8 +2,8 @@ "plugins": [ { "name": "gel", - "version": "0.2.0", - "checksum": "059e06b927ab5ff0d75a1719a0a669ca3502b9a130f54261b196f4b23b775a61" + "version": "0.6.0", + "checksum": "eeab73565b0f167d3d576dc6da86d53419bff5bbb2ea927fae1cc2fe4b52f55f" } ] }