ci: patch issue in gcom curl command (#5061)
## Which issue(s) this PR closes Fix https://github.com/grafana/oncall/actions/runs/10997991428/job/30535419238#step:9:1
This commit is contained in:
parent
e882e9782d
commit
737eaf79cc
2 changed files with 5 additions and 7 deletions
|
|
@ -7,18 +7,15 @@ inputs:
|
|||
it as the official plugin version.
|
||||
required: true
|
||||
outputs:
|
||||
authoritative_version_number:
|
||||
description: "The version number of the plugin used for publishing artifacts"
|
||||
value: ${{ steps.plugin-version.outputs.version }}
|
||||
artifact_filename:
|
||||
description: "The filename of the plugin artifact"
|
||||
value: ${{ steps.artifact-filename.outputs.filename }}
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
# This will fetch the secret keys from vault and set them as environment variables for subsequent steps
|
||||
- name: Get Vault secrets
|
||||
uses: grafana/shared-workflows/actions/get-vault-secrets@main
|
||||
with:
|
||||
repo_secrets: |
|
||||
GRAFANA_ACCESS_POLICY_TOKEN=github_actions:cloud-access-policy-token
|
||||
- name: Determine official plugin version
|
||||
id: plugin-version
|
||||
shell: bash
|
||||
|
|
|
|||
3
.github/workflows/on-release-published.yml
vendored
3
.github/workflows/on-release-published.yml
vendored
|
|
@ -36,6 +36,7 @@ jobs:
|
|||
uses: grafana/shared-workflows/actions/get-vault-secrets@main
|
||||
with:
|
||||
repo_secrets: |
|
||||
GRAFANA_ACCESS_POLICY_TOKEN=github_actions:cloud-access-policy-token
|
||||
GCS_PLUGIN_PUBLISHER_SERVICE_ACCOUNT_JSON=github_actions:gcs-plugin-publisher
|
||||
- name: Build, sign, and package plugin
|
||||
id: build-sign-and-package-plugin
|
||||
|
|
@ -57,7 +58,7 @@ jobs:
|
|||
id: gcs-artifact-url
|
||||
# yamllint disable rule:line-length
|
||||
run: |
|
||||
echo url="https://storage.googleapis.com/grafana-oncall-app/releases/grafana-oncall-app-${{ github.ref_name }}.zip" >> $GITHUB_OUTPUT
|
||||
echo url="https://storage.googleapis.com/grafana-oncall-app/releases/grafana-oncall-app-${{ steps.build-sign-and-package-plugin.outputs.authoritative_version_number }}.zip" >> $GITHUB_OUTPUT
|
||||
- name: Publish plugin to grafana.com
|
||||
run: |
|
||||
curl -f -w "status=%{http_code}" -s -H "Authorization: Bearer ${{ env.GRAFANA_ACCESS_POLICY_TOKEN }}" -d "download[any][url]=${{ steps.gcs-artifact-url.outputs.url }}" -d "download[any][md5]=$(curl -sL ${{ steps.gcs-artifact-url.outputs.url }} | md5sum | cut -d'' '' -f1)" -d url=https://github.com/grafana/oncall/grafana-plugin https://grafana.com/api/plugins
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue