From 9ee8731ed759a3dbe82f66b3f93a9bef85f54070 Mon Sep 17 00:00:00 2001 From: Michael Derynck Date: Tue, 16 Aug 2022 11:48:30 -0600 Subject: [PATCH 1/2] Move step to publish plugin in github to tag instead of promte as the drone plugin doesn't seem to work with that step. (#374) --- .drone.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index d5b65eff..61e0109b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -33,6 +33,19 @@ steps: - zip -r grafana-oncall-app.zip ./grafana-oncall-app - if [ -z "$DRONE_TAG" ]; then echo "No tag, skipping archive"; else cp grafana-oncall-app.zip grafana-oncall-app-${DRONE_TAG}.zip; fi + - name: Publish Plugin to Github (release) + image: plugins/github-release + settings: + api_key: + from_secret: gh_token + files: grafana-plugin/ci/dist/grafana-oncall-app-${DRONE_TAG}.zip + title: ${DRONE_TAG} + depends_on: + - Sign and Package Plugin + when: + ref: + - refs/tags/v*.*.* + - name: Publish Plugin to GCS (release) image: plugins/gcs settings: @@ -193,16 +206,6 @@ steps: - zip -r grafana-oncall-app.zip ./grafana-oncall-app - if [ -z "$DRONE_TAG" ]; then echo "No tag, skipping archive"; else cp grafana-oncall-app.zip grafana-oncall-app-${DRONE_TAG}.zip; fi - - name: Publish Plugin to Github (release) - image: plugins/github-release - settings: - api_key: - from_secret: gh_token - files: grafana-plugin/ci/dist/grafana-oncall-app-${DRONE_TAG}.zip - title: ${DRONE_TAG} - depends_on: - - Sign and Package Plugin - - name: Publish Plugin to grafana.com (release) image: curlimages/curl:7.73.0 environment: @@ -211,7 +214,7 @@ steps: commands: - "curl -f -s -H \"Authorization: Bearer $${GRAFANA_API_KEY}\" -d \"download[any][url]=https://storage.googleapis.com/grafana-oncall-app/releases/grafana-oncall-app-${DRONE_TAG}.zip\" -d \"download[any][md5]=$$(curl -sL https://storage.googleapis.com/grafana-oncall-app/releases/grafana-oncall-app-${DRONE_TAG}.zip | md5sum | cut -d' ' -f1)\" -d url=https://github.com/grafana/oncall/grafana-plugin https://grafana.com/api/plugins" depends_on: - - Publish Plugin to Github (release) + - Sign and Package Plugin - name: Image Tag image: alpine From 8e8806dcbade7d79facf9bc5e75551eca4f5839c Mon Sep 17 00:00:00 2001 From: Michael Derynck Date: Tue, 16 Aug 2022 11:57:03 -0600 Subject: [PATCH 2/2] Update drone signature (#375) --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 61e0109b..58274b4b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -334,6 +334,6 @@ kind: secret name: drone_token --- kind: signature -hmac: 7621bb1ccfcbec9f92c385670f2b2790859aba25f31c4936997123906fb102c0 +hmac: a74dd831a3d0a87b8fc1db45699a6a834ea769da9f437c55979ae665948c3b3f ...