Skip to content

call-backend-package-variants #228

call-backend-package-variants

call-backend-package-variants #228

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" }'