Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/generate ansible inv pre task #435

Merged
merged 3 commits into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions infra-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ parameters:
component: inventory
destroy: false
deploy: true
preStep:
- task: AzureCLI@2
displayName: Download GitHub Private Key
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
azureSubscription: "MSDN Sub"
scriptType: "bash"
scriptLocation: "inlineScript"
inlineScript: az keyvault secret download --name GitHub-Bot-Private-Key --vault-name bancey-vault --file $(System.DefaultWorkingDirectory)/private-key.pem
dependsOn: []
- deployment: prod_twingate
environment: prod
Expand Down
Loading