-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pipeline): load kv based on branch in scheduled drift detection (#31
- Loading branch information
Showing
5 changed files
with
20 additions
and
18 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
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
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
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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
steps: | ||
- bash: | | ||
echo "" | ||
echo "" | ||
echo "***** Confirm Key Vault Integration *****" | ||
echo "Fail pipeline if no key vault is loaded before Terraform tries and fails." | ||
echo "--------------------------------" | ||
echo "Confirm Key Vault 🔑 Integration" | ||
echo "--------------------------------" | ||
echo "KV_DEBUG_ENV: $KV_DEBUG_ENV" | ||
echo "" | ||
if [ "$KV_DEBUG_ENV" = '$(kv-debug-env)' ]; then | ||
echo "Key Vault not loaded. If loaded properly, debug env value would be 'dev' or 'production'." | ||
echo "⛔️ Key Vault not loaded" | ||
echo "Please double check configuration Variable Groups in Azure Pipelines UI and that the YAML pipeline is running against the `main` or `production` branch." | ||
exit 1 | ||
else | ||
echo "Key Vault loaded for: $KV_DEBUG_ENV" | ||
echo "✅ Key Vault loaded" | ||
fi | ||
displayName: Debug - Key Vault loaded? | ||
env: | ||
KV_DEBUG_ENV: $(kv-debug-env) | ||
KV_DEBUG_ENV: $(kv-debug-env) | ||
|
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