Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmellos committed Jan 4, 2024
1 parent bbd2fc6 commit dced198
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/iac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,27 +137,27 @@ jobs:
with:
version: '~> 1'

- name: Authenticate against Teleport to use Vault
if: inputs.TELEPORT_APP != ''
id: teleportapp
uses: ./actions/.github/actions/teleport
env:
TOKEN: ${{ secrets.TELEPORT_TOKEN }}
PROXY_URL: ${{ inputs.TELEPORT_PROXY_URL }}
with:
TELEPORT_APP: ${{ inputs.TELEPORT_APP }}
- name: Configure Vault
if: inputs.TELEPORT_APP != ''
run: |
echo VAULT_ADDR=https://${{ inputs.TELEPORT_PROXY_URL }} >> $GITHUB_ENV
#echo VAULT_API_ADDR=https://${{ inputs.TELEPORT_PROXY_URL }} >> $GITHUB_ENV
echo VAULT_CLIENT_TIMEOUT=120s >> $GITHUB_ENV
echo VAULT_CLIENT_CERT=${{ steps.teleportapp.outputs.certificate-file }} >> $GITHUB_ENV
echo VAULT_CLIENT_KEY=${{ steps.teleportapp.outputs.key-file }} >> $GITHUB_ENV
echo VAULT_TOKEN=$VAULT_TOKEN >> $GITHUB_ENV
env:
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}
- name: Authenticate against Teleport to use Vault
if: inputs.TELEPORT_APP != ''
id: teleportapp
uses: ./actions/.github/actions/teleport
env:
TOKEN: ${{ secrets.TELEPORT_TOKEN }}
PROXY_URL: ${{ inputs.TELEPORT_PROXY_URL }}
with:
TELEPORT_APP: ${{ inputs.TELEPORT_APP }}

- name: Configure Vault
if: inputs.TELEPORT_APP != ''
run: |
echo VAULT_ADDR=https://${{ inputs.TELEPORT_PROXY_URL }} >> $GITHUB_ENV
#echo VAULT_API_ADDR=https://${{ inputs.TELEPORT_PROXY_URL }} >> $GITHUB_ENV
echo VAULT_CLIENT_TIMEOUT=120s >> $GITHUB_ENV
echo VAULT_CLIENT_CERT=${{ steps.teleportapp.outputs.certificate-file }} >> $GITHUB_ENV
echo VAULT_CLIENT_KEY=${{ steps.teleportapp.outputs.key-file }} >> $GITHUB_ENV
echo VAULT_TOKEN=$VAULT_TOKEN >> $GITHUB_ENV
env:
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}

- run: vault secrets list
- uses: opentofu/setup-opentofu@v1
Expand Down

0 comments on commit dced198

Please sign in to comment.