Skip to content

Commit

Permalink
fix: Publish script (#966)
Browse files Browse the repository at this point in the history
A space before the bash bang was making it being executed through sh in
ubuntu:latest as part of the promote production CI pipeline, on which an
option set in the script is not supported. Remove the extra space so the
sript is executed in bash and 'set -eufo pipefile' is applied correctly.
  • Loading branch information
ka3de authored Oct 9, 2024
1 parent 3d33fe5 commit b3a678b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/publish-gcom.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash
# This is used in Drone to generate the version string for automatic PR creation
set -eufo pipefail

Expand All @@ -11,4 +11,4 @@ curl -f -w "status=%{http_code}" -s -H "Authorization: Bearer ${GRAFANA_API_KEY}
-d "download[any][url]=https://storage.googleapis.com/synthetic-monitoring-app-prod/builds/${VERSION}/grafana-synthetic-monitoring-app-${VERSION}.zip" \
-d "download[any][md5]=$$(curl -sL https://storage.googleapis.com/synthetic-monitoring-app-prod/builds/${VERSION}/grafana-synthetic-monitoring-app-${VERSION}.zip | md5sum | cut -d' ' -f1)" \
-d url=https://github.com/grafana/synthetic-monitoring-app \
"https://grafana.com/api/plugins"
"https://grafana.com/api/plugins"

0 comments on commit b3a678b

Please sign in to comment.