Skip to content

Commit 2ee3a27

Browse files
authored
Merge pull request #376 from grafana/dev
Merge dev to main
2 parents e216547 + 8e8806d commit 2ee3a27

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.drone.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ steps:
3333
- zip -r grafana-oncall-app.zip ./grafana-oncall-app
3434
- if [ -z "$DRONE_TAG" ]; then echo "No tag, skipping archive"; else cp grafana-oncall-app.zip grafana-oncall-app-${DRONE_TAG}.zip; fi
3535

36+
- name: Publish Plugin to Github (release)
37+
image: plugins/github-release
38+
settings:
39+
api_key:
40+
from_secret: gh_token
41+
files: grafana-plugin/ci/dist/grafana-oncall-app-${DRONE_TAG}.zip
42+
title: ${DRONE_TAG}
43+
depends_on:
44+
- Sign and Package Plugin
45+
when:
46+
ref:
47+
- refs/tags/v*.*.*
48+
3649
- name: Publish Plugin to GCS (release)
3750
image: plugins/gcs
3851
settings:
@@ -193,16 +206,6 @@ steps:
193206
- zip -r grafana-oncall-app.zip ./grafana-oncall-app
194207
- if [ -z "$DRONE_TAG" ]; then echo "No tag, skipping archive"; else cp grafana-oncall-app.zip grafana-oncall-app-${DRONE_TAG}.zip; fi
195208

196-
- name: Publish Plugin to Github (release)
197-
image: plugins/github-release
198-
settings:
199-
api_key:
200-
from_secret: gh_token
201-
files: grafana-plugin/ci/dist/grafana-oncall-app-${DRONE_TAG}.zip
202-
title: ${DRONE_TAG}
203-
depends_on:
204-
- Sign and Package Plugin
205-
206209
- name: Publish Plugin to grafana.com (release)
207210
image: curlimages/curl:7.73.0
208211
environment:
@@ -211,7 +214,7 @@ steps:
211214
commands:
212215
- "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"
213216
depends_on:
214-
- Publish Plugin to Github (release)
217+
- Sign and Package Plugin
215218

216219
- name: Image Tag
217220
image: alpine
@@ -331,6 +334,6 @@ kind: secret
331334
name: drone_token
332335
---
333336
kind: signature
334-
hmac: 7621bb1ccfcbec9f92c385670f2b2790859aba25f31c4936997123906fb102c0
337+
hmac: a74dd831a3d0a87b8fc1db45699a6a834ea769da9f437c55979ae665948c3b3f
335338

336339
...

0 commit comments

Comments
 (0)