Skip to content

Commit

Permalink
Merge pull request #376 from grafana/dev
Browse files Browse the repository at this point in the history
Merge dev to main
  • Loading branch information
mderynck authored Aug 16, 2022
2 parents e216547 + 8e8806d commit 2ee3a27
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -331,6 +334,6 @@ kind: secret
name: drone_token
---
kind: signature
hmac: 7621bb1ccfcbec9f92c385670f2b2790859aba25f31c4936997123906fb102c0
hmac: a74dd831a3d0a87b8fc1db45699a6a834ea769da9f437c55979ae665948c3b3f

...

0 comments on commit 2ee3a27

Please sign in to comment.