Skip to content

Commit 9ee8731

Browse files
authored
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)
1 parent f3c5558 commit 9ee8731

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.drone.yml

Lines changed: 14 additions & 11 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

0 commit comments

Comments
 (0)