Skip to content

Commit 85868a1

Browse files
authored
Merge pull request #101 from grafana/update-to-publish-to-cloud-vs-onprem
Publish to every environment on Cloud and Add On-Prem promotion
2 parents 75cd769 + 7083ea7 commit 85868a1

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/publish.yaml

Lines changed: 10 additions & 6 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,8 +36,8 @@ 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
41+
scopes: ${{ github.event.inputs.environment == 'cloud (recommended)' && 'grafana_cloud' || github.event.inputs.environment == 'on-prem (for emergencies fix to On Prem customers)' && 'universal' }}
3842
golangci-lint-version: 2.1.6
3943
github-draft-release: false

0 commit comments

Comments
 (0)