Skip to content

Commit 9e5bcf5

Browse files
authored
Publish to every environment on Cloud and Add On-Prem promotion (#613)
1 parent 16bdc63 commit 9e5bcf5

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ on:
88
description: Branch to publish from. Can be used to deploy PRs to dev
99
default: main
1010
environment:
11-
description: Environment to publish to
11+
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.
1212
required: true
1313
type: choice
14+
default: "cloud (recommended)"
1415
options:
15-
- 'dev'
16-
- 'ops'
17-
- 'prod'
16+
- "cloud (recommended)"
17+
- "on-prem (for emergencies fix to On Prem customers)"
1818
docs-only:
1919
description: Only publish docs, do not publish the plugin
2020
default: false
@@ -24,6 +24,10 @@ permissions: {}
2424

2525
jobs:
2626
cd:
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
environment: [dev, ops, prod]
2731
name: CD
2832
uses: grafana/plugin-ci-workflows/.github/workflows/cd.yml@main # zizmor: ignore[unpinned-uses]
2933
permissions:
@@ -32,10 +36,10 @@ jobs:
3236
attestations: write
3337
with:
3438
branch: ${{ github.event.inputs.branch }}
35-
environment: ${{ github.event.inputs.environment }}
39+
environment: ${{ matrix.environment }}
3640
docs-only: ${{ fromJSON(github.event.inputs.docs-only) }}
37-
scopes: universal
38-
go-version: '1.24'
39-
golangci-lint-version: '2.1.6'
41+
scopes: ${{ github.event.inputs.environment == 'cloud (recommended)' && 'grafana_cloud' || github.event.inputs.environment == 'on-prem (for emergencies fix to On Prem customers)' && 'universal' }}
42+
go-version: "1.24"
43+
golangci-lint-version: "2.1.6"
4044
run-playwright: false
4145
github-draft-release: false

0 commit comments

Comments
 (0)