Skip to content

Commit

Permalink
Update Secrets script
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmanuelthiel committed Sep 9, 2022
1 parent 33f50f1 commit 58d4282
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app-selection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class AppSelectionGenerator extends BaseSelectionGenerator {
new GeneratorSelection('Yeoman', 'wemogy:yeoman'),
new GeneratorSelection('Git', 'wemogy:git'),
new GeneratorSelection('Documentation', 'wemogy:docs'),
new GeneratorSelection('Scripts', 'wemogy:scripts'),
new GeneratorSelection('wemogy CLI', 'wemogy:wemogy-cli'),
new SeparatorSelection(),
new GeneratorSelection('ReactBase', 'wemogy:reactbase'),
Expand Down
4 changes: 2 additions & 2 deletions src/script-secrets/templates/secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ subscriptionId=<%= subscriptionId %>
# Get absolute path for script and calculate path for output file
scriptPath="$(cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)"
parentDir="$(dirname "$scriptPath")"
daprSecretsFolder="$(cd $parentDir/../env/dapr/secrets ; pwd)"

##################
# Terraform #
Expand All @@ -27,7 +26,8 @@ localDevServicePrincipalTenantId=$(az keyvault secret show --subscription $subsc
localDevServicePrincipalPassword=$(az keyvault secret show --subscription $subscriptionId --vault-name $keyVaultName --name LocalDevServicePrincipalPassword --query value -o tsv)

# Create secrets folder for Dapr
mkdir $daprSecretsFolder
daprSecretsFolder="$parentDir/../env/dapr/secrets"
mkdir -p $daprSecretsFolder

# Generate JSON file out of Key Vault secrets
jq \
Expand Down

0 comments on commit 58d4282

Please sign in to comment.