Deploy main to cloud (recommended) by @iwysiu #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Plugins - CD | |
| run-name: Deploy ${{ inputs.branch }} to ${{ inputs.environment }} by @${{ github.actor }} | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: Branch to publish from. Can be used to deploy PRs to dev | |
| default: main | |
| environment: | |
| description: Environment will always publish to all waves (dev + ops + prod). Cloud will publish scoped only to Grafana Cloud, On Prem will publish with Universal scope. Please use Cloud unless emergency fix needed for On Prem customer. | |
| required: true | |
| type: choice | |
| default: 'cloud (recommended)' | |
| options: | |
| - 'cloud (recommended)' | |
| - 'on-prem (for emergencies fix to On Prem customers)' | |
| docs-only: | |
| description: Only publish docs, do not publish the plugin | |
| default: false | |
| type: boolean | |
| permissions: {} | |
| jobs: | |
| cd: | |
| name: CD | |
| uses: grafana/plugin-ci-workflows/.github/workflows/cd.yml@ci-cd-workflows/v6.1.0 | |
| permissions: | |
| contents: write | |
| pull-requests: read | |
| id-token: write | |
| attestations: write | |
| with: | |
| branch: ${{ github.event.inputs.branch }} | |
| environment: 'prod' | |
| docs-only: ${{ fromJSON(github.event.inputs.docs-only) }} | |
| scopes: ${{ github.event.inputs.environment == 'cloud (recommended)' && 'grafana_cloud' || github.event.inputs.environment == 'on-prem (for emergencies fix to On Prem customers)' && 'universal' }} | |
| go-version: '1.24' | |
| golangci-lint-version: '2.1.6' | |
| playwright-secrets: | | |
| ACCESS_KEY=e2e:accessKey | |
| SECRET_KEY=e2e:secretKey | |
| github-draft-release: false # publish the github release directly, skipping the draft step | |
| run-playwright-with-skip-grafana-react-19-preview-image: true | |
| # Scope for the plugin published to the catalog. Setting this to "grafana_cloud" will make it visible only in Grafana Cloud | |
| # (and hide it for on-prem). This is required for some provisioned plugins. | |
| # scopes: grafana_cloud | |
| # Also deploy the plugin to Grafana Cloud via Argo. You also have to follow the Argo Workflows setup guide for this to work. | |
| # grafana-cloud-deployment-type: provisioned | |
| # argo-workflow-slack-channel: "#grafana-plugins-platform-ci" |