Skip to content

Commit

Permalink
use service connection
Browse files Browse the repository at this point in the history
  • Loading branch information
matmerr committed Jun 18, 2024
1 parent 33482d6 commit a09bde1
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .pipelines/cg-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,13 @@ stages:
- checkout: self
fetchTags: true

- task: Docker@2
displayName: Docker Login
- task: AzureCLI@1
displayName: "Docker Login"
inputs:
containerRegistry: $(WINDOWS_BUILDER_REGISTRY)
command: "login"
addPipelineData: false
azureSubscription: $(SERVICE_CONNECTION)
scriptLocation: "inlineScript"
inlineScript: |
az acr login -n $(WINDOWS_BUILDER_REGISTRY)
- task: PowerShell@2
displayName: "Build Retina Windows Image (LTSC2022)"
Expand All @@ -197,3 +198,10 @@ stages:
artifactName: output
pathtoPublish: ./output
condition: succeeded()

- task: PowerShell@2
displayName: "Logout"
inputs:
targetType: "inline"
script: |
docker logout

0 comments on commit a09bde1

Please sign in to comment.