Skip to content

call-frontend-package-variants #230

call-frontend-package-variants

call-frontend-package-variants #230

name: call-frontend-package-variants
on:
workflow_dispatch:
inputs:
baseVersion:
description: 'Version of Base Image and Repository Tag; example: 0.14.80'
required: true
jobs:
call-frontend-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 "pluginsFrontend=@max-bytes/okplugin-generic-json-ingest@${{ github.event.inputs.baseVersion }} @max-bytes/okplugin-visualization@${{ github.event.inputs.baseVersion }}" >> $GITHUB_ENV
- name: "Invoke frontend variant: a"
uses: benc-uk/workflow-dispatch@v1
with:
workflow: package-frontend-variant
token: ${{ secrets.PAT }}
inputs: '{ "variantName": "${{ env.variantName }}", "baseVersion": "${{ env.baseVersion }}", "pluginsFrontend": "${{ env.pluginsFrontend }}" }'
call-frontend-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 "pluginsFrontend=@max-bytes/okplugin-generic-json-ingest@${{ github.event.inputs.baseVersion }} @max-bytes/okplugin-visualization@${{ github.event.inputs.baseVersion }}" >> $GITHUB_ENV
- name: "Invoke frontend variant: b"
uses: benc-uk/workflow-dispatch@v1
with:
workflow: package-frontend-variant
token: ${{ secrets.PAT }}
inputs: '{ "variantName": "${{ env.variantName }}", "baseVersion": "${{ env.baseVersion }}", "pluginsFrontend": "${{ env.pluginsFrontend }}" }'
call-frontend-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 "pluginsFrontend=@max-bytes/okplugin-generic-json-ingest@${{ github.event.inputs.baseVersion }} @max-bytes/okplugin-visualization@${{ github.event.inputs.baseVersion }}" >> $GITHUB_ENV
- name: "Invoke frontend variant: internal"
uses: benc-uk/workflow-dispatch@v1
with:
workflow: package-frontend-variant
token: ${{ secrets.PAT }}
inputs: '{ "variantName": "${{ env.variantName }}", "baseVersion": "${{ env.baseVersion }}", "pluginsFrontend": "${{ env.pluginsFrontend }}" }'