[FEATURE] Auto Oasis Test

This commit is contained in:
Dunemask 2024-02-15 18:07:23 -07:00
parent 48a90a0643
commit 66aaa3be7c

View file

@ -32,7 +32,6 @@ runs:
- name: Configure Workflow
shell: bash
run: |
echo "HUNYUH"
if [ ${{ inputs.deploy-env }} == "edge" ]; then
WORKFLOW_SECRET=/workflows/oasis-edge-deploy
elif [ ${{ inputs.deploy-env }} == "ci" ]; then
@ -41,7 +40,6 @@ runs:
echo "Error! deploy-env required, and must be 'ci' or 'edge'!"
exit 1
fi
echo "HUNO"
# Save Envars
echo OASIS_INFISICAL_TOKEN=${{ inputs.infisical-token }} >> $GITHUB_ENV
echo OASIS_PATH_FETCH=$WORKFLOW_SECRET,${{ inputs.extra-secret-paths }} # /workflows/oasis-<deploy-type>-deploy, ...extra-secret-paths
@ -50,11 +48,15 @@ runs:
uses: https://gitea.dunemask.dev/elysium/elysium-actions@infisical-env
with:
infisical-token: ${{ env.OASIS_INFISICAL_TOKEN }}
envs: ${{ env.OASIS_ENV_FETCH }}
secret-envs: ${{ env.OASIS_ENV_FETCH }}
secret-paths: ${{ env.OASIS_PATH_FETCH }}
- name: Configure Kubeconfig
shell: bash
run: |
echo "WHAIT JUST WHPAPENN"
echo "Token: ${{ env.OASIS_INFISICAL_TOKEN }}"
echo "Envs: ${{ env.OASIS_ENV_FETCH }}"
echo "Paths: ${{ env.OASIS_PATH_FETCH }}"
if [ -n ${{ inputs.kubeconfig }} && ${{ inputs.kubeconfig }} != "" ]; then
echo "Using Provided Kubernetes Config"
echo OASIS_WORKFLOW_KUBECONFIG=${{ inputs.kubeconfig }} >> $GITHUB_ENV