Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grizzly/actions/setup GitHub action #374

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
*.orig
*.swp
.idea
/actions/*/node_modules
1 change: 1 addition & 0 deletions actions/setup/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
72 changes: 72 additions & 0 deletions actions/setup/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Grizzly - `setup` GitHub Action

This action downloads and adds Grizzly to the PATH.

## Example usage

```yaml
uses: grafana/grizzly/actions/setup@main
with:
version: 'v0.4.0'
grafana.url: 'https://my-grafana-instance:3000'
grafana.user: admin
grafana.token: ${{ secrets.GRIZZLY_GRAFANA_TOKEN}}
```

## Inputs

### `version`

**Required** Version of Grizzly to install. Default `"latest"`.

### `grafana.url`

**Optional** Sets `grafana.url` in the configuration.

### `grafana.token`

**Optional** Sets `grafana.token` in the configuration.

### `grafana.user`

**Optional** Sets `grafana.user` in the configuration.

### `mimir.address`

**Optional** Sets `mimir.address` in the configuration.

### `mimir.tenant-id`

**Optional** Sets `mimir.tenant-id` in the configuration.

### `mimir.api-key`

**Optional** Sets `mimir.api-key` in the configuration.

### `synthetic-monitoring.token`

**Optional** Sets `synthetic-monitoring.token` in the configuration.

### `synthetic-monitoring.stack-id`

**Optional** Sets `synthetic-monitoring.stack-id` in the configuration.

### `synthetic-monitoring.metrics-id`

**Optional** Sets `synthetic-monitoring.metrics-id` in the configuration.

### `synthetic-monitoring.logs-id`

**Optional** Sets `synthetic-monitoring.logs-id` in the configuration.

### `targets`

**Optional** Sets `targets` in the configuration.

### `output-format`

**Optional** Sets `output-format` in the configuration.

### `only-spec`

**Optional** Sets `only-spec` in the configuration.
52 changes: 52 additions & 0 deletions actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: 'Setup Grizzly'
description: 'Setup Grizzly - A utility for managing Grafana resources'

runs:
using: 'node20'
main: 'dist/index.js'

inputs:
version:
description: 'Version of Grizzly to install'
required: true
default: 'latest'

grafana.url:
description: Sets `grafana.url` in the configuration
required: false
grafana.token:
description: Sets `grafana.token` in the configuration
required: false
grafana.user:
description: Sets `grafana.user` in the configuration
required: false
mimir.address:
description: Sets `mimir.address` in the configuration
required: false
mimir.tenant-id:
description: Sets `mimir.tenant-id` in the configuration
required: false
mimir.api-key:
description: Sets `mimir.api-key` in the configuration
required: false
synthetic-monitoring.token:
description: Sets `synthetic-monitoring.token` in the configuration
required: false
synthetic-monitoring.stack-id:
description: Sets `synthetic-monitoring.stack-id` in the configuration
required: false
synthetic-monitoring.metrics-id:
description: Sets `synthetic-monitoring.metrics-id` in the configuration
required: false
synthetic-monitoring.logs-id:
description: Sets `synthetic-monitoring.logs-id` in the configuration
required: false
targets:
description: Sets `targets` in the configuration
required: false
output-format:
description: Sets `output-format` in the configuration
required: false
only-spec:
description: Sets `only-spec` in the configuration
required: false
15 changes: 15 additions & 0 deletions actions/setup/dist/464.index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions actions/setup/dist/464.index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading