File tree Expand file tree Collapse file tree 5 files changed +56
-218
lines changed Expand file tree Collapse file tree 5 files changed +56
-218
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Plugins - CD
2
+ run-name : Deploy ${{ inputs.branch }} to ${{ inputs.environment }} by @${{ github.actor }}
3
+
4
+ on :
5
+ workflow_dispatch :
6
+ inputs :
7
+ branch :
8
+ description : Branch to publish from. Can be used to deploy PRs to dev
9
+ default : main
10
+ environment :
11
+ description : Environment to publish to
12
+ required : true
13
+ type : choice
14
+ options :
15
+ - " dev"
16
+ - " ops"
17
+ - " prod"
18
+ docs-only :
19
+ description : Only publish docs, do not publish the plugin
20
+ default : false
21
+ type : boolean
22
+
23
+ permissions : {}
24
+
25
+ jobs :
26
+ cd :
27
+ name : CD
28
+ uses : grafana/plugin-ci-workflows/.github/workflows/cd.yml@main # zizmor: ignore[unpinned-uses]
29
+ permissions :
30
+ contents : write
31
+ id-token : write
32
+ attestations : write
33
+ with :
34
+ branch : ${{ github.event.inputs.branch }}
35
+ environment : ${{ github.event.inputs.environment }}
36
+ docs-only : ${{ fromJSON(github.event.inputs.docs-only) }}
37
+ scopes : universal
Original file line number Diff line number Diff line change
1
+ name : Plugins - CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+
9
+ permissions : {}
10
+
11
+ jobs :
12
+ ci :
13
+ name : CI
14
+ uses : grafana/plugin-ci-workflows/.github/workflows/ci.yml@main
15
+ permissions :
16
+ contents : read
17
+ id-token : write
18
+ with :
19
+ plugin-version-suffix : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments