[FEATURE] Auto Oasis Test
This commit is contained in:
parent
f30fb74a11
commit
733cd65260
1 changed files with 7 additions and 2 deletions
|
@ -7,6 +7,9 @@ inputs:
|
||||||
deploy-env:
|
deploy-env:
|
||||||
description: Deploy Environment (ci or edge)
|
description: Deploy Environment (ci or edge)
|
||||||
required: true
|
required: true
|
||||||
|
kubeconfig:
|
||||||
|
description: Kubeconfig for Oasis
|
||||||
|
required: false
|
||||||
garden-version:
|
garden-version:
|
||||||
description: Version of Garden to deploy
|
description: Version of Garden to deploy
|
||||||
required: false
|
required: false
|
||||||
|
@ -42,10 +45,12 @@ runs:
|
||||||
- name: Configure Kubeconfig
|
- name: Configure Kubeconfig
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [ ${{ inputs.deploy-env }} == "edge" ]; then
|
if [ ${{ inputs.deploy-env }} == "edge" && -z ${{ inputs.kubeconfig }} ]; then
|
||||||
echo OASIS_WORKFLOW_KUBECONFIG=${{env.KUBERNETES_CONFIG_USW_EDGE}} >> $GITHUB_ENV
|
echo OASIS_WORKFLOW_KUBECONFIG=${{env.KUBERNETES_CONFIG_USW_EDGE}} >> $GITHUB_ENV
|
||||||
elif [ ${{ inputs.deploy-env }} == "ci" ]; then
|
elif [ ${{ inputs.deploy-env }} == "ci" && -z ${{ inputs.kubeconfig }} ]; then
|
||||||
echo OASIS_WORKFLOW_KUBECONFIG=${{env.KUBERNETES_CONFIG_USW_DEV}} >> $GITHUB_ENV
|
echo OASIS_WORKFLOW_KUBECONFIG=${{env.KUBERNETES_CONFIG_USW_DEV}} >> $GITHUB_ENV
|
||||||
|
elif [ -n ${{ inputs.kubeconfig }} ]; then
|
||||||
|
echo OASIS_WORKFLOW_KUBECONFIG=${{ inputs.kubeconfig }} >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "Error! deploy-env required, and must be 'ci' or 'edge'!"
|
echo "Error! deploy-env required, and must be 'ci' or 'edge'!"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue