[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
|
name: Oasis Auto Config Action
|
||||||
description: Configure env for deploying apps using Oasis Automagically
|
description: Configure env for deploying apps using Oasis Automagically
|
||||||
inputs:
|
inputs:
|
||||||
|
infiscal-token:
|
||||||
|
description: Infisical token for CI or Prod
|
||||||
|
required: true
|
||||||
deploy-env:
|
deploy-env:
|
||||||
description: Deploy Environment (ci or edge)
|
description: Deploy Environment (ci or edge)
|
||||||
required: true
|
required: true
|
||||||
|
@ -21,23 +24,15 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo OASIS_ENV_STRATEGY=${{ inputs.deploy-env }} >> $GITHUB_ENV
|
echo OASIS_ENV_STRATEGY=${{ inputs.deploy-env }} >> $GITHUB_ENV
|
||||||
|
echo OASIS_INFISICAL_TOKEN="${{ inputs.infiscal-token }}" >> $GITHUB_ENV
|
||||||
if [ ${{ inputs.deploy-env }} == "edge" ]; then
|
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
|
echo OASIS_INFISICAL_WORKFLOW=/workflows/oasis-edge-deploy >> $GITHUB_ENV
|
||||||
elif [ ${{ inputs.deploy-env }} == "ci" ]; then
|
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
|
echo OASIS_INFISICAL_WORKFLOW=/workflows/oasis-ci-deploy >> $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
|
||||||
fi
|
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
|
- name: Setup Oasis Envars
|
||||||
uses: https://gitea.dunemask.dev/elysium/elysium-actions@infisical-env
|
uses: https://gitea.dunemask.dev/elysium/elysium-actions@infisical-env
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue