Skip to content

Commit a403fd3

Browse files
authored
Publish to every environment on Cloud and add on-prem promotion (#266)
1 parent d2d9731 commit a403fd3

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/publish.yaml

Lines changed: 12 additions & 7 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
permissions:
2933
contents: write
@@ -32,8 +36,9 @@ jobs:
3236
uses: grafana/plugin-ci-workflows/.github/workflows/cd.yml@ci-cd-workflows/v3
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-
golangci-lint-version: '2.0.2'
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'
3944
github-draft-release: false # publish the github release directly, skipping the draft

0 commit comments

Comments
 (0)