diff --git a/azure-pipelines.web.yaml b/azure-pipelines.web.yaml index b3e566137..4c4e52045 100644 --- a/azure-pipelines.web.yaml +++ b/azure-pipelines.web.yaml @@ -30,13 +30,6 @@ pool: vmImage: "ubuntu-latest" steps: - - task: Docker@2 - displayName: login to github package registry - inputs: - containerRegistry: "GitHub Docker Package Registry - FilterLists" - command: "login" - # condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))" - - task: Docker@2 displayName: build inputs: @@ -49,6 +42,13 @@ steps: latest $(Build.BuildId) + - task: Docker@2 + displayName: login to github package registry + inputs: + containerRegistry: "GitHub Docker Package Registry - FilterLists" + command: "login" + condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))" + - task: Docker@2 displayName: push inputs: