github actions workflows added (#1947)
* github actions workflows added * added playwright tests * Apply suggestions from code review * Update .github/workflows/push.yaml
This commit is contained in:
32
.github/workflows/publish.yaml
vendored
Normal file
32
.github/workflows/publish.yaml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Plugins - CD
|
||||
run-name: Deploy ${{ inputs.branch }} to ${{ inputs.environment }} by @${{ github.actor }}
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
description: Branch to publish from. Can be used to deploy PRs to dev
|
||||
default: main
|
||||
environment:
|
||||
description: Environment to publish to
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- 'dev'
|
||||
- 'ops'
|
||||
- 'prod'
|
||||
docs-only:
|
||||
description: Only publish docs, do not publish the plugin
|
||||
default: false
|
||||
type: boolean
|
||||
|
||||
jobs:
|
||||
cd:
|
||||
name: CD
|
||||
uses: grafana/plugin-ci-workflows/.github/workflows/cd.yml@main
|
||||
with:
|
||||
go-version: '1.23.5'
|
||||
branch: ${{ github.event.inputs.branch }}
|
||||
environment: ${{ github.event.inputs.environment }}
|
||||
docs-only: ${{ fromJSON(github.event.inputs.docs-only) }}
|
||||
run-playwright: true
|
||||
Reference in New Issue
Block a user