Skip to content

Commit b037b45

Browse files
committed
Migrate to github actions
1 parent 4806090 commit b037b45

File tree

5 files changed

+56
-218
lines changed

5 files changed

+56
-218
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 99 deletions
This file was deleted.

.github/workflows/e2e.yml

Lines changed: 0 additions & 96 deletions
This file was deleted.

.github/workflows/publish.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

.github/workflows/push.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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 || '' }}

.github/workflows/release.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)