mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
test slimming build task
This commit is contained in:
parent
c3a3b674e5
commit
ae5b1e4ab8
1 changed files with 9 additions and 7 deletions
|
|
@ -31,14 +31,14 @@ steps:
|
|||
- task: Docker@2
|
||||
displayName: "build"
|
||||
inputs:
|
||||
containerRegistry: "github-package-registry"
|
||||
repository: "collinbarrett/filterlists/filterlists.web"
|
||||
#containerRegistry: "github-package-registry"
|
||||
#repository: "collinbarrett/filterlists/filterlists.web"
|
||||
command: "build"
|
||||
Dockerfile: "web/Dockerfile"
|
||||
buildContext: "./web"
|
||||
tags: |
|
||||
latest
|
||||
$(Build.BuildId)
|
||||
#tags: |
|
||||
# latest
|
||||
# $(Build.BuildId)
|
||||
addPipelineData: false
|
||||
|
||||
- task: Docker@2
|
||||
|
|
@ -46,6 +46,7 @@ steps:
|
|||
inputs:
|
||||
command: "login"
|
||||
containerRegistry: "github-package-registry"
|
||||
condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
|
||||
|
||||
- task: Docker@2
|
||||
displayName: "push"
|
||||
|
|
@ -63,9 +64,10 @@ steps:
|
|||
inputs:
|
||||
command: logout
|
||||
containerRegistry: "github-package-registry"
|
||||
condition: "eq(variables['Build.SourceBranch'], 'refs/heads/master')"
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: "stage docker-compose files"
|
||||
displayName: "stage compose files"
|
||||
inputs:
|
||||
SourceFolder: "$(Build.SourcesDirectory)"
|
||||
Contents: |
|
||||
|
|
@ -77,7 +79,7 @@ steps:
|
|||
condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: "publish docker-compose files"
|
||||
displayName: "publish compose files"
|
||||
inputs:
|
||||
PathtoPublish: "$(Build.ArtifactStagingDirectory)"
|
||||
ArtifactName: "drop"
|
||||
|
|
|
|||
Loading…
Reference in a new issue