[FEATURE] Auto Oasis Test
This commit is contained in:
parent
733cd65260
commit
664e6eaf66
1 changed files with 3 additions and 0 deletions
|
@ -46,10 +46,13 @@ runs:
|
|||
shell: bash
|
||||
run: |
|
||||
if [ ${{ inputs.deploy-env }} == "edge" && -z ${{ inputs.kubeconfig }} ]; then
|
||||
echo "Using Edge Kubernetes Config"
|
||||
echo OASIS_WORKFLOW_KUBECONFIG=${{env.KUBERNETES_CONFIG_USW_EDGE}} >> $GITHUB_ENV
|
||||
elif [ ${{ inputs.deploy-env }} == "ci" && -z ${{ inputs.kubeconfig }} ]; then
|
||||
echo "Using Dev Kubernetes Config"
|
||||
echo OASIS_WORKFLOW_KUBECONFIG=${{env.KUBERNETES_CONFIG_USW_DEV}} >> $GITHUB_ENV
|
||||
elif [ -n ${{ inputs.kubeconfig }} ]; then
|
||||
echo "Using Provided Kubernetes Config"
|
||||
echo OASIS_WORKFLOW_KUBECONFIG=${{ inputs.kubeconfig }} >> $GITHUB_ENV
|
||||
else
|
||||
echo "Error! deploy-env required, and must be 'ci' or 'edge'!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue