File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 135135 AZWI_JWKS_JSON_FILEPATH=" ${REPO_ROOT} /jwks.json"
136136 " ${AZWI} " jwks --public-keys " ${SERVICE_ACCOUNT_SIGNING_PUB_FILEPATH} " --output-file " ${AZWI_JWKS_JSON_FILEPATH} "
137137 echo " Uploading openid-configuration document to '${AZWI_STORAGE_ACCOUNT} ' storage account"
138- upload_to_blob " ${AZWI_STORAGE_CONTAINER} " " ${ AZWI_OPENID_CONFIG_FILEPATH}" " .well-known/openid-configuration"
138+ upload_to_blob " ${AZWI_OPENID_CONFIG_FILEPATH} " " .well-known/openid-configuration"
139139 echo " Uploading jwks document to '${AZWI_STORAGE_ACCOUNT} ' storage account"
140- upload_to_blob " ${AZWI_STORAGE_CONTAINER} " " ${ AZWI_JWKS_JSON_FILEPATH}" " openid/v1/jwks"
140+ upload_to_blob " ${AZWI_JWKS_JSON_FILEPATH} " " openid/v1/jwks"
141141 echo " Removing key access on storage account as no further data writes are required"
142142 az storage account update -n " ${AZWI_STORAGE_ACCOUNT} " -g " ${AZWI_RESOURCE_GROUP} " --subscription " ${AZURE_SUBSCRIPTION_ID} " --allow-shared-key-access=false --output none --only-show-errors
143143 fi
@@ -167,13 +167,12 @@ EOF
167167}
168168
169169function upload_to_blob() {
170- local container_name=$1
171- local file_path=$2
172- local blob_name=$3
170+ local file_path=$1
171+ local blob_name=$2
173172
174173 echo " Uploading ${file_path} to '${AZWI_STORAGE_ACCOUNT} ' storage account"
175174 az storage blob upload \
176- --container-name " ${container_name } " \
175+ --container-name " ${AZWI_STORAGE_CONTAINER } " \
177176 --file " ${file_path} " \
178177 --name " ${blob_name} " \
179178 --account-name " ${AZWI_STORAGE_ACCOUNT} " \
You can’t perform that action at this time.
0 commit comments