From 8dd851ec4a6584b52f3793ca682d1cd6ae9d9131 Mon Sep 17 00:00:00 2001 From: Dunemask Date: Wed, 14 Feb 2024 22:04:41 -0700 Subject: [PATCH] [TMP] Init prototype --- action.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..81d900c --- /dev/null +++ b/action.yml @@ -0,0 +1,42 @@ +name: 'Oasis Auto Config Action' +description: 'Configure env for deploying apps using Oasis Automagically' +inputs: + deploy-env: + description: 'Deploy Environment (ci or edge)' + required: true + garden-version: + description: 'Version of Garden to deploy' + required: false + default: 0.13.24 + oasis-branch: + description: 'Branch of Oasis to use' + required: false + default: master + oasis-workspace: + descipriont: 'Workspace to setup Oasis' + required: false + default: ${{ gitea.workspace}}/oasis +runs: + using: "composite" + steps: + - name: Configure Workflow + shell: bash + echo OASIS_ENV_STRATEGY=${{ inputs.deploy-env }} >> $GITHUB_ENV + + # Set additional Envars + - name: Setup Oasis Envars + uses: https://gitea.dunemask.dev/elysium/elysium-actions@infisical-env + with: + infisical-token: ${{ secrets.INFISICAL_ELYSIUM_CI_READ_TOKEN }} + environment: ci + secret-path: /workflows/oasis-ci-deploy + + run: echo "Getting envars" + - name: Setup Environment + shell: bash + run: | + echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV + echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV + echo "Checking out Oasis" + +