[TMP] Init prototype
This commit is contained in:
parent
8191038ee0
commit
8dd851ec4a
1 changed files with 42 additions and 0 deletions
42
action.yml
Normal file
42
action.yml
Normal file
|
@ -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"
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue