forked from grafana/clickhouse-datasource
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.64 KB
/
publish.yml
File metadata and controls
46 lines (43 loc) · 1.64 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
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:
strategy:
fail-fast: false
matrix:
environment: [dev, ops, prod]
name: CD
uses: grafana/plugin-ci-workflows/.github/workflows/cd.yml@ci-cd-workflows/v5.1.0
permissions:
contents: write
id-token: write
attestations: write
pull-requests: read
with:
branch: ${{ github.event.inputs.branch }}
environment: ${{ matrix.environment }}
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.25"
golangci-lint-version: "2.1.6"
run-playwright: false
github-draft-release: false