-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (50 loc) · 2.7 KB
/
call-backend-package-variants.yml
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
name: call-backend-package-variants
on:
workflow_dispatch:
inputs:
baseVersion:
description: 'Version of Base Image and Repository Tag; example: 0.14.80'
required: true
jobs:
call-package-variant-a:
runs-on: ubuntu-20.04
steps:
- name: Set env variables
run: |
echo "variantName=a" >> $GITHUB_ENV
echo "baseVersion=${{ github.event.inputs.baseVersion }}" >> $GITHUB_ENV
echo "pluginsBackend=OKPluginGenericJSONIngest:${{ github.event.inputs.baseVersion }};OKPluginVisualization:${{ github.event.inputs.baseVersion }};" >> $GITHUB_ENV
- name: "Invoke backend variant: a"
uses: benc-uk/workflow-dispatch@v1
with:
workflow: package-backend-variant
token: ${{ secrets.PAT }}
inputs: '{ "variantName": "${{ env.variantName }}", "baseVersion": "${{ env.baseVersion }}", "pluginsBackend": "${{ env.pluginsBackend }}", "runSystemTests": "false" }'
call-package-variant-b:
runs-on: ubuntu-20.04
steps:
- name: Set env variables
run: |
echo "variantName=b" >> $GITHUB_ENV
echo "baseVersion=${{ github.event.inputs.baseVersion }}" >> $GITHUB_ENV
echo "pluginsBackend=OKPluginGenericJSONIngest:${{ github.event.inputs.baseVersion }};OKPluginVisualization:${{ github.event.inputs.baseVersion }};OKPluginInsightDiscoveryScanIngest:${{ github.event.inputs.baseVersion }};" >> $GITHUB_ENV
- name: "Invoke backend variant: b"
uses: benc-uk/workflow-dispatch@v1
with:
workflow: package-backend-variant
token: ${{ secrets.PAT }}
inputs: '{ "variantName": "${{ env.variantName }}", "baseVersion": "${{ env.baseVersion }}", "pluginsBackend": "${{ env.pluginsBackend }}", "runSystemTests": "false" }'
call-package-variant-internal:
runs-on: ubuntu-20.04
steps:
- name: Set env variables
run: |
echo "variantName=internal" >> $GITHUB_ENV
echo "baseVersion=${{ github.event.inputs.baseVersion }}" >> $GITHUB_ENV
echo "pluginsBackend=OKPluginGenericJSONIngest:${{ github.event.inputs.baseVersion }};OKPluginActiveDirectoryXMLIngest:${{ github.event.inputs.baseVersion }};OKPluginAnsibleInventoryScanIngest:${{ github.event.inputs.baseVersion }};OKPluginVisualization:${{ github.event.inputs.baseVersion }};OKPluginInsightDiscoveryScanIngest:${{ github.event.inputs.baseVersion }};" >> $GITHUB_ENV
- name: "Invoke backend variant: internal"
uses: benc-uk/workflow-dispatch@v1
with:
workflow: package-backend-variant
token: ${{ secrets.PAT }}
inputs: '{ "variantName": "${{ env.variantName }}", "baseVersion": "${{ env.baseVersion }}", "pluginsBackend": "${{ env.pluginsBackend }}", "runSystemTests": "true" }'