Created
September 12, 2021 10:01
-
-
Save WolfgangOfner/4baac64aa588117648a2beb7a451c8f9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
- stage: PR_Delete | |
dependsOn: PR_Deploy | |
condition: succeeded('PR_Deploy') | |
variables: | |
K8sNamespace: '$(ApiName)-pr-$(prId)' | |
jobs: | |
- deployment: Delete_PR_Namespace | |
environment: "customerapi-PR-Delete" | |
displayName: Build and push Docker image and create Helm package | |
strategy: | |
runOnce: | |
deploy: | |
steps: | |
- download: none | |
- template: templates/GetPrId.yml | |
- task: Kubernetes@1 | |
inputs: | |
connectionType: 'Azure Resource Manager' | |
azureSubscriptionEndpoint: 'AzureServiceConnection' | |
azureResourceGroup: $(ClusterResourceGroup) | |
kubernetesCluster: $(KubernetesCluster) | |
useClusterAdmin: true | |
command: 'delete' | |
arguments: 'namespaces $(k8sNamespace)' | |
displayName: 'Delete PR namespace' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment