-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d52f3f8
commit bbd2fc6
Showing
1 changed file
with
27 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,29 +132,34 @@ jobs: | |
uses: mdgreenwald/[email protected] | ||
with: | ||
version: 3.7.3 | ||
|
||
- 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 }} | ||
|
||
- uses: innovationnorway/setup-vault@v1 | ||
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 }} | ||
|
||
- run: vault secrets list | ||
- uses: opentofu/setup-opentofu@v1 | ||
|
||
- name: Init | ||
|