[TMP] Init prototype
This commit is contained in:
parent
8191038ee0
commit
ce41d08758
1 changed files with 30 additions and 0 deletions
30
action.yml
Normal file
30
action.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Based on https://github.com/zerodays/action-infisical/blob/master/action.yml
|
||||
name: 'Elysium Infisical Secrets'
|
||||
description: 'Fetch secrets from Infisical and add them to the env'
|
||||
inputs:
|
||||
infisical-token:
|
||||
description: 'Infisical API Token'
|
||||
required: true
|
||||
environment:
|
||||
description: 'The environment to fetch secrets for (e.g., staging, production)'
|
||||
required: true
|
||||
secret-matrix:
|
||||
description: 'Secret Matrix'
|
||||
required: true
|
||||
api-url:
|
||||
description: 'Infisical API URL (defaults to https://infisical.dunemask.dev/api)'
|
||||
required: false
|
||||
default: 'https://infisical.dunemask.dev/api'
|
||||
runs:
|
||||
using: 'composite'
|
||||
strategy:
|
||||
matrix:
|
||||
secret-path: ${{ inputs.secret-matrix}}
|
||||
steps:
|
||||
- name: Infisical CLI install
|
||||
shell: bash
|
||||
run: |
|
||||
curl -s -L https://github.com/Infisical/infisical/releases/download/infisical-cli%2Fv0.16.10/infisical_0.16.10_linux_amd64.tar.gz | tar xvz
|
||||
./infisical export --domain ${{ inputs.api-url }} --token ${{ inputs.infisical-token}} --env ${{ inputs.environment }} --path ${{ matrix.secret-path }} >> $GITHUB_ENV
|
||||
- shell: bash
|
||||
run: echo "Secrets added to environment!".
|
Loading…
Add table
Add a link
Reference in a new issue