mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
add conditions for login and push
This commit is contained in:
parent
8a00451a64
commit
ff5aa70461
1 changed files with 2 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ steps:
|
|||
inputs:
|
||||
containerRegistry: "GitHub Docker Package Registry - FilterLists"
|
||||
command: "login"
|
||||
condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
|
||||
|
||||
- task: Docker@2
|
||||
displayName: push
|
||||
|
|
@ -52,6 +53,7 @@ steps:
|
|||
containerRegistry: "GitHub Docker Package Registry - FilterLists"
|
||||
repository: "collinbarrett/filterlists"
|
||||
command: "push"
|
||||
condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
|
||||
tags: |
|
||||
latest
|
||||
$(Build.BuildId)
|
||||
|
|
|
|||
Loading…
Reference in a new issue