[FEATURE] Auto Oasis Test
This commit is contained in:
parent
b188ab8a7a
commit
81d12ebb1c
1 changed files with 4 additions and 9 deletions
13
action.yml
13
action.yml
|
@ -1,6 +1,9 @@
|
|||
name: Oasis Auto Config Action
|
||||
description: Configure env for deploying apps using Oasis Automagically
|
||||
inputs:
|
||||
infiscal-token:
|
||||
description: Infisical token for CI or Prod
|
||||
required: true
|
||||
deploy-env:
|
||||
description: Deploy Environment (ci or edge)
|
||||
required: true
|
||||
|
@ -21,23 +24,15 @@ runs:
|
|||
shell: bash
|
||||
run: |
|
||||
echo OASIS_ENV_STRATEGY=${{ inputs.deploy-env }} >> $GITHUB_ENV
|
||||
echo OASIS_INFISICAL_TOKEN="${{ inputs.infiscal-token }}" >> $GITHUB_ENV
|
||||
if [ ${{ inputs.deploy-env }} == "edge" ]; then
|
||||
echo OASIS_INFISICAL_TOKEN=${{ secrets.INFISICAL_ELYSIUM_PROD_READ_TOKEN }} >> $GITHUB_ENV
|
||||
echo OASIS_INFISICAL_WORKFLOW=/workflows/oasis-edge-deploy >> $GITHUB_ENV
|
||||
elif [ ${{ inputs.deploy-env }} == "ci" ]; then
|
||||
echo OASIS_INFISICAL_TOKEN="${{ secrets.INFISICAL_ELYSIUM_CI_READ_TOKEN }}" >> $GITHUB_ENV
|
||||
echo OASIS_INFISICAL_WORKFLOW=/workflows/oasis-ci-deploy >> $GITHUB_ENV
|
||||
else
|
||||
echo "Error! deploy-env required, and must be 'ci' or 'edge'!"
|
||||
exit 1
|
||||
fi
|
||||
- name: Configure Kubeconfig
|
||||
shell: bash
|
||||
run: |
|
||||
echo "Token: ${{ env.OASIS_INFISICAL_TOKEN }}"
|
||||
echo "Token: '${{ secrets.INFISICAL_ELYSIUM_CI_READ_TOKEN }}'"
|
||||
echo "Deploy env: ${{ inputs.deploy-env }}"
|
||||
echo "Workflow: ${{ env.OASIS_INFISICAL_WORKFLOW }}"
|
||||
- name: Setup Oasis Envars
|
||||
uses: https://gitea.dunemask.dev/elysium/elysium-actions@infisical-env
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue