[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:
|
||||
description: Deploy Environment (ci or edge)
|
||||
required: true
|
||||
kubeconfig:
|
||||
description: Kubeconfig for Oasis
|
||||
required: false
|
||||
garden-version:
|
||||
description: Version of Garden to deploy
|
||||
required: false
|
||||
|
@ -42,10 +45,12 @@ runs:
|
|||
- name: Configure Kubeconfig
|
||||
shell: bash
|
||||
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
|
||||
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
|
||||
elif [ -n ${{ inputs.kubeconfig }} ]; then
|
||||
echo OASIS_WORKFLOW_KUBECONFIG=${{ inputs.kubeconfig }} >> $GITHUB_ENV
|
||||
else
|
||||
echo "Error! deploy-env required, and must be 'ci' or 'edge'!"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue