-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (45 loc) · 2.08 KB
/
publish.yaml
File metadata and controls
50 lines (45 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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.1
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' }}
playwright-secrets: |
ACCESS_KEY=e2e:accessKey
SECRET_KEY=e2e:secretKey
github-draft-release: false # publish the github release directly, skipping the draft step
# 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"