Skip to content

Commit aa0284e

Browse files
mdvictorimatwawana
andauthored
Forking procedure (#9)
* update plugin * fixes * refactor * fix * revert * fix * fix * fix * revert unneeded changes * Update README.md Co-authored-by: Isabel Matwawana <[email protected]> --------- Co-authored-by: Isabel Matwawana <[email protected]>
1 parent 432bdfd commit aa0284e

20 files changed

+378
-373
lines changed

.config/docker-compose-base.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
services:
2+
grafana:
3+
user: root
4+
container_name: 'grafana-business-variable-panel'
5+
image: grafana/${GRAFANA_IMAGE:-grafana-enterprise}:${GRAFANA_VERSION:-latest}
6+
ports:
7+
- 3000:3000/tcp
8+
volumes:
9+
- ../dist:/var/lib/grafana/plugins/volkovlabs-variable-panel
10+
- ../provisioning:/etc/grafana/provisioning
11+
environment:
12+
NODE_ENV: development
13+
GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
14+
GF_AUTH_ANONYMOUS_ENABLED: ${ANONYMOUS_AUTH_ENABLED:-true}
15+
GF_AUTH_BASIC_ENABLED: 'false'
16+
GF_DEFAULT_APP_MODE: development
17+
GF_LOG_FILTERS: plugin.volkovlabs-variable-panel:debug
18+
GF_LOG_LEVEL: debug
19+
GF_DATAPROXY_LOGGING: 1
20+
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: volkovlabs-variable-panel
21+
GF_INSTALL_PLUGINS: marcusolsson-static-datasource,golioth-websocket-datasource,marcusolsson-json-datasource

.config/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
},
2222
"transpileOnly": true
2323
},
24-
"include": ["../src", "./types", "./jest-setup.ts"],
24+
"include": ["../src", "./types"],
2525
"extends": "@grafana/tsconfig"
2626
}

.config/webpack/webpack.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ const config = async (env): Promise<Configuration> => {
146146
{ from: hasReadme() ? 'README.md' : '../README.md', to: '.', force: true },
147147
{ from: 'plugin.json', to: '.' },
148148
{ from: '../LICENSE', to: '.' },
149+
{ from: '../LICENSE-original', to: '.' },
150+
{ from: '../NOTICES.md', to: '.' },
149151
{ from: '../CHANGELOG.md', to: '.', force: true },
150152
{ from: '**/*.json', to: '.' }, // TODO<Add an error for checking the basic structure of the repo>
151153
{ from: '**/*.svg', to: '.', noErrorOnMissing: true }, // Optional

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @grafana/dashboards-squad

.github/workflows/ci.yml

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

.github/workflows/codeql-analysis.yml

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

.github/workflows/e2e.yml

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

.github/workflows/main.yml

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

.github/workflows/publish.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
attestation: true
38+
signature-type: community
39+
run-playwright: false

.github/workflows/push.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 # zizmor: ignore[unpinned-uses]
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 || '' }}
20+
run-playwright-with-grafana-dependency: '>=12.0 <13.0'
21+
run-playwright: false
22+
run-playwright-docker: true
23+
playwright-docker-compose-file: docker-compose.yaml
24+
upload-playwright-artifacts: true
25+
run-playwright-with-skip-grafana-dev-image: true
26+
signature-type: community
27+
# playwright-config: e2e/playwright.config.ts

0 commit comments

Comments
 (0)