mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
try login before build and tag
This commit is contained in:
parent
4e13efd1e5
commit
46151d93ee
1 changed files with 7 additions and 7 deletions
|
|
@ -30,6 +30,13 @@ 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:
|
||||
|
|
@ -42,13 +49,6 @@ 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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue