feat: Update Infisical CLI installation source and enhance secret fetching with project ID and export example.
Some checks failed
List Infisical Secrets / list-secrets (push) Failing after 16s
Some checks failed
List Infisical Secrets / list-secrets (push) Failing after 16s
This commit is contained in:
@@ -11,13 +11,17 @@ jobs:
|
||||
steps:
|
||||
- name: Install Infisical CLI
|
||||
run: |
|
||||
curl -1sLf 'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.deb.sh' | sudo -E bash
|
||||
curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | sudo -E bash
|
||||
sudo apt-get update && sudo apt-get install -y infisical
|
||||
|
||||
- name: List Secrets
|
||||
- name: List and Export Secrets
|
||||
env:
|
||||
INFISICAL_API_URL: https://infisical.lemarechal.eu/api
|
||||
INFISICAL_UNIVERSAL_AUTH_CLIENT_ID: ${{ secrets.INFISICAL_CLIENT_ID }}
|
||||
INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET: ${{ secrets.INFISICAL_CLIENT_SECRET }}
|
||||
run: |
|
||||
infisical secrets --path /Discord_bot --env prod
|
||||
# List secrets (as requested)
|
||||
infisical secrets --path /Discord_bot --env prod --projectId ${{ secrets.INFISICAL_PROJECT_ID }}
|
||||
|
||||
# Example: Export secrets as environment variables for the current shell
|
||||
# export $(infisical export --path /Discord_bot --env prod --projectId ${{ secrets.INFISICAL_PROJECT_ID }} --format=dotenv | xargs)
|
||||
|
||||
Reference in New Issue
Block a user