Skip to content

Commit

Permalink
Temporary ACR
Browse files Browse the repository at this point in the history
  • Loading branch information
jananivMS committed May 14, 2020
1 parent adce71e commit a3a4ebe
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,23 @@ steps:
displayName: Docker build
workingDirectory: '$(System.DefaultWorkingDirectory)'

- task: Docker@2
displayName: Login to temporary pipeline ACR
inputs:
command: login
containerRegistry: $(PIPELINE_CONTAINER_REGISTRY)

- task: Docker@2
displayName: Build and Push Docker Image to temporary ACR for validation
inputs:
command: buildAndPush
containerRegistry: $(PIPELINE_CONTAINER_REGISTRY)
repository: $(IMAGE_NAME)
Dockerfile: "$(System.DefaultWorkingDirectory)/Dockerfile"
buildContext: $(System.DefaultWorkingDirectory)
tags: |
$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_VERSION)
- task: Kubernetes@1
displayName: Deploy to AKS - Fetch kubeconfig
inputs:
Expand Down Expand Up @@ -232,6 +249,7 @@ steps:
--set createNamespace=true \
--set aad-pod-identity.azureIdentity.resourceID="/subscriptions/4ef44fef-c51d-4d7c-a6ff-8635c02848b1/resourcegroups/resourcegroup-azure-operators/providers/Microsoft.ManagedIdentity/userAssignedIdentities/aso-devops-mi" \
--set aad-pod-identity.azureIdentity.clientID="88cd557c-f616-489a-a397-0a651fd91edf" \
--set image.repository:$(PIPELINE_CONTAINER_REGISTRY)/$(IMAGE_NAME) \
--set namespace=$(OPERATOR_NAMESPACE)
kubectl get namespace
kubectl get pods -n $(OPERATOR_NAMESPACE)
Expand All @@ -251,7 +269,7 @@ steps:

- task: Docker@2
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
displayName: Login to ACR
displayName: Login to release ACR
inputs:
command: login
containerRegistry: $(CONTAINER_REGISTRY)
Expand Down

0 comments on commit a3a4ebe

Please sign in to comment.