-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
54 lines (51 loc) · 1.61 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: rode-dev-env
author: rode@liatrio.com
description: A test environment for Rode and its components
branding:
icon: anchor
color: green
inputs:
rodeVersion:
description: "Rode version. Set this value to 'local' to skip initializing Rode."
required: true
default: "0.14"
elasticsearchVersion:
description: 'Elasticsearch Docker image tag.'
required: true
default: "7.10.0"
grafeasVersion:
description: 'Grafeas Elasticsearch Docker image tag.'
required: true
default: "0.8"
opaVersion:
description: 'Open Policy Agent Docker image tag.'
required: true
default: "0.24.0"
stage:
description: "One of either main or post"
required: true
default: "main"
outputs:
rodeHost:
description: 'Rode hostname and port. No protocol.'
value: ${{ steps.outputs.rode-dev-env.rodeHost }}
elasticsearchUrl:
description: 'Elasticsearch URL.'
value: ${{ steps.outputs.rode-dev-env.elasticsearchUrl }}
grafeasElasticsearchHost:
description: 'Grafeas Elasticsearch host and port. No protocol.'
value: ${{ steps.outputs.rode-dev-env.grafeasElasticsearchHost }}
opaUrl:
description: 'Open Policy Agent URL.'
value: ${{ steps.outputs.rode-dev-env.opaUrl }}
runs:
using: composite
steps:
- run: node ${{ github.action_path }}/dist/index.js
shell: bash
env:
INPUT_RODEVERSION: ${{ inputs.rodeVersion }}
INPUT_ELASTICSEARCHVERSION: ${{ inputs.elasticsearchVersion }}
INPUT_GRAFEASVERSION: ${{ inputs.grafeasVersion }}
INPUT_OPAVERSION: ${{ inputs.opaVersion }}
INPUT_STAGE: ${{ inputs.stage }}