[FEATURE] Auto Oasis Test
This commit is contained in:
parent
a18f49543e
commit
e4cd795081
1 changed files with 35 additions and 40 deletions
23
action.yml
23
action.yml
|
@ -1,24 +1,25 @@
|
|||
name: 'Oasis Auto Config Action'
|
||||
description: 'Configure env for deploying apps using Oasis Automagically'
|
||||
name: Oasis Auto Config Action
|
||||
description: Configure env for deploying apps using Oasis Automagically
|
||||
inputs:
|
||||
deploy-env:
|
||||
description: 'Deploy Environment (ci or edge)'
|
||||
description: Deploy Environment (ci or edge)
|
||||
required: true
|
||||
garden-version:
|
||||
description: 'Version of Garden to deploy'
|
||||
description: Version of Garden to deploy
|
||||
required: false
|
||||
oasis-branch:
|
||||
description: 'Branch of Oasis to use'
|
||||
description: Branch of Oasis to use
|
||||
required: false
|
||||
default: master
|
||||
oasis-workspace:
|
||||
descipriont: 'Workspace to setup Oasis'
|
||||
descipriont: Workspace to setup Oasis
|
||||
required: false
|
||||
runs:
|
||||
using: "composite"
|
||||
using: composite
|
||||
steps:
|
||||
- name: Configure Workflow
|
||||
shell: bash
|
||||
run: >-
|
||||
echo OASIS_ENV_STRATEGY=${{ inputs.deploy-env }} >> $GITHUB_ENV
|
||||
if [ ${{ inputs.deploy-env }} == "edge" ]; then
|
||||
echo OASIS_INFISICAL_TOKEN=${{ secrets.INFISICAL_ELYSIUM_PROD_READ_TOKEN }} >> $GITHUB_ENV
|
||||
|
@ -30,18 +31,15 @@ runs:
|
|||
echo "Error! deploy-env required, and must be 'ci' or 'edge'!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set additional Envars
|
||||
- name: Setup Oasis Envars
|
||||
uses: https://gitea.dunemask.dev/elysium/elysium-actions@infisical-env
|
||||
with:
|
||||
infisical-token: ${{ env.OASIS_INFISICAL_TOKEN }}
|
||||
environment: ${{ env.OASIS_ENV_STRATEGY}}
|
||||
secret-path: ${{ env.OASIS_INFISICAL_WORKFLOW }}
|
||||
|
||||
- name: Configure Kubeconfig
|
||||
shell: bash
|
||||
echo OASIS_ENV_STRATEGY=${{ inputs.deploy-env }} >> $GITHUB_ENV
|
||||
run: >-
|
||||
if [ ${{ inputs.deploy-env }} == "edge" ]; then
|
||||
echo OASIS_WORKFLOW_KUBECONFIG=${{env.KUBERNETES_CONFIG_USW_DEV}} >> $GITHUB_ENV
|
||||
elif [ ${{ inputs.deploy-env }} == "ci" ]; then
|
||||
|
@ -57,6 +55,3 @@ runs:
|
|||
oasis-branch: ${{ inputs.oasis-branch }}
|
||||
oasis-workspace: ${{ inputs.oasis-workspace }}
|
||||
kubeconfig: ${{ env.OASIS_WORKFLOW_KUBECONFIG }}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue