Skip to content

Commit

Permalink
unique deploy name for frontend-cert in differnt envs (#968)
Browse files Browse the repository at this point in the history
this way deployments of different people won't block each other

Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle authored Dec 12, 2024
1 parent ea38101 commit 37c60e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions dev-infrastructure/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -190,19 +190,17 @@ svc.rg:
fi
.PHONY: svc.rg

svc.wait:
@./ensure-no-running-deployment.sh $(SVC_RESOURCEGROUP) $(SVC_RG_DEPLOYMENT_NAME)
.PHONY: svc.wait

svc: svc.wait svc.rg
svc: svc.rg
@scripts/cleanup-orphaned-rolebindings.sh $(SVC_RESOURCEGROUP)
@./ensure-no-running-deployment.sh $(SVC_RESOURCEGROUP) $(SVC_RG_DEPLOYMENT_NAME)-infra
az deployment group create \
--name $(SVC_RG_DEPLOYMENT_NAME)-infra \
--resource-group $(SVC_RESOURCEGROUP) \
--template-file templates/svc-infra.bicep \
$(PROMPT_TO_CONFIRM) \
--parameters \
configurations/svc-infra.bicepparam
@./ensure-no-running-deployment.sh $(SVC_RESOURCEGROUP) $(SVC_RG_DEPLOYMENT_NAME)
az deployment group create \
--name $(SVC_RG_DEPLOYMENT_NAME) \
--resource-group $(SVC_RESOURCEGROUP) \
Expand Down
2 changes: 1 addition & 1 deletion dev-infrastructure/templates/svc-infra.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ output svcKeyVaultName string = serviceKeyVault.outputs.kvName
var clientAuthenticationName = 'frontend.${regionalDNSZoneName}'

module clientCertificate '../modules/keyvault/key-vault-cert.bicep' = {
name: 'frontend-cert'
name: 'frontend-cert-${uniqueString(certName)}'
scope: resourceGroup(serviceKeyVaultResourceGroup)
params: {
keyVaultName: serviceKeyVault.outputs.kvName
Expand Down

0 comments on commit 37c60e0

Please sign in to comment.