Merge pull request #53 from dotnet-architecture/dev

eShopOnContainers fork
This commit is contained in:
Taras Kovalenko 2019-05-31 12:01:48 +03:00 committed by GitHub
commit 4140b99534
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
34 changed files with 1026 additions and 522 deletions

View File

@ -50,3 +50,36 @@ jobs:
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build apigws
inputs:
dockerComposeCommand: 'build mobileshoppingapigw mobilemarketingapigw webshoppingapigw webmarketingapigw'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push apigws
inputs:
dockerComposeCommand: 'push mobileshoppingapigw mobilemarketingapigw webshoppingapigw webmarketingapigw'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: ocelotapigw
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -12,34 +10,71 @@ trigger:
- src/BuildingBlocks/* - src/BuildingBlocks/*
- src/Services/Basket/* - src/Services/Basket/*
- k8s/helm/basket-api/* - k8s/helm/basket-api/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build basket pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build basket.api' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build basket
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build basket.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push basket projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push basket.api' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push basket
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push basket.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build basket
inputs:
dockerComposeCommand: 'build basket.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push basket
inputs:
dockerComposeCommand: 'push basket.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: basket.api
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -12,34 +10,71 @@ trigger:
- src/BuildingBlocks/* - src/BuildingBlocks/*
- src/Services/Catalog/* - src/Services/Catalog/*
- k8s/helm/catalog-api/* - k8s/helm/catalog-api/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build catalog pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build catalog.api' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build catalog
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build catalog.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push catalog projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push catalog.api' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push catalog
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push catalog.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindow
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build catalog
inputs:
dockerComposeCommand: 'build catalog.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push catalog
inputs:
dockerComposeCommand: 'push catalog.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: catalog.api
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -12,34 +10,71 @@ trigger:
- src/BuildingBlocks/* - src/BuildingBlocks/*
- src/Services/Identity/* - src/Services/Identity/*
- k8s/helm/identity-api/* - k8s/helm/identity-api/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build identity pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build identity.api' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build identity
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build identity.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push identity projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push identity.api' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push identity
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push identity.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build identity
inputs:
dockerComposeCommand: 'build identity.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push identity
inputs:
dockerComposeCommand: 'push identity.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: identity.api
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -12,34 +10,71 @@ trigger:
- src/BuildingBlocks/* - src/BuildingBlocks/*
- src/Services/Location/* - src/Services/Location/*
- k8s/helm/locations-api/* - k8s/helm/locations-api/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build locations pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build locations.api' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build locations
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build locations.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push locations projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push locations.api' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push locations
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push locations.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build locations
inputs:
dockerComposeCommand: 'build locations.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push locations
inputs:
dockerComposeCommand: 'push locations.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: locations.api
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -12,34 +10,71 @@ trigger:
- src/BuildingBlocks/* - src/BuildingBlocks/*
- src/Services/Marketing/* - src/Services/Marketing/*
- k8s/helm/marketing-api/* - k8s/helm/marketing-api/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build marketing pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build marketing.api' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build marketing
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build marketing.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push marketing projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push marketing.api' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push marketing
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push marketing.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build marketing
inputs:
dockerComposeCommand: 'build marketing.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push marketing
inputs:
dockerComposeCommand: 'push marketing.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: marketing.api
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -11,34 +9,72 @@ trigger:
include: include:
- src/ApiGateways/Mobile.Bff.Shopping/aggregator/* - src/ApiGateways/Mobile.Bff.Shopping/aggregator/*
- k8s/helm/mobileshoppingagg/* - k8s/helm/mobileshoppingagg/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build mobileshoppingagg pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build mobileshoppingagg' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build mobileshoppingagg
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build mobileshoppingagg'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push mobileshoppingagg projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push mobileshoppingagg' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push mobileshoppingagg
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push mobileshoppingagg'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build mobileshoppingagg
inputs:
dockerComposeCommand: 'build mobileshoppingagg'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push mobileshoppingagg
inputs:
dockerComposeCommand: 'push mobileshoppingagg'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: mobileshoppingagg
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -0,0 +1,27 @@
parameters:
image: ''
branch: ''
registryEndpoint: ''
jobs:
- job: manifest
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: Docker@1
displayName: Docker Login
inputs:
command: login
containerregistrytype: 'Container Registry'
dockerRegistryEndpoint: ${{ parameters.registryEndpoint }}
- bash: |
mkdir -p ~/.docker
echo '{ "experimental": "enabled" }' > ~/.docker/config.json
docker --config ~/.docker manifest create eshop/${{ parameters.image }}:${{ parameters.branch }} eshop/${{ parameters.image }}:linux-${{ parameters.branch }} eshop/${{ parameters.image }}:win-${{ parameters.branch }}
docker --config ~/.docker manifest create eshop/${{ parameters.image }}:latest eshop/${{ parameters.image }}:linux-latest eshop/${{ parameters.image }}:win-latest
docker --config ~/.docker push eshop/${{ parameters.image }}:${{ parameters.branch }}
docker --config ~/.docker push eshop/${{ parameters.image }}:latest
displayName: 'Create Manifest'
dependsOn:
- BuildWindows
- BuildLinux

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -14,34 +12,71 @@ trigger:
- k8s/helm/ordering-api/* - k8s/helm/ordering-api/*
- k8s/helm/ordering-backgroundtasks/* - k8s/helm/ordering-backgroundtasks/*
- k8s/helm/ordering-signalrhub/* - k8s/helm/ordering-signalrhub/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build ordering pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build ordering.api ordering.backgroundtasks ordering.signalrhub' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build ordering
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build ordering.api ordering.backgroundtasks ordering.signalrhub'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push ordering projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push ordering.api ordering.backgroundtasks ordering.signalrhub' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push ordering
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push ordering.api ordering.backgroundtasks ordering.signalrhub'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build ordering
inputs:
dockerComposeCommand: 'build ordering.api ordering.backgroundtasks ordering.signalrhub'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push ordering
inputs:
dockerComposeCommand: 'push ordering.api ordering.backgroundtasks ordering.signalrhub'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: ordering.api
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -12,34 +10,71 @@ trigger:
- src/BuildingBlocks/* - src/BuildingBlocks/*
- src/Services/Payment/* - src/Services/Payment/*
- k8s/helm/payment-api/* - k8s/helm/payment-api/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build payment pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build payment.api' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build payment
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build payment.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push payment projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push payment.api' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push payment
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push payment.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build payment
inputs:
dockerComposeCommand: 'build payment.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push payment
inputs:
dockerComposeCommand: 'push payment.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: payment.api
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -11,34 +9,71 @@ trigger:
include: include:
- src/ApiGateways/Web.Bff.Shopping/aggregator/* - src/ApiGateways/Web.Bff.Shopping/aggregator/*
- k8s/helm/webshoppingagg/* - k8s/helm/webshoppingagg/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build webshoppingagg pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build webshoppingagg' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build webshoppingagg
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build webshoppingagg'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push webshoppingagg projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push webshoppingagg' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push webshoppingagg
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push webshoppingagg'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build webshoppingagg
inputs:
dockerComposeCommand: 'build webshoppingagg'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push webshoppingagg
inputs:
dockerComposeCommand: 'push webshoppingagg'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: webshoppingagg
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -12,34 +10,71 @@ trigger:
- src/BuildingBlocks/* - src/BuildingBlocks/*
- src/Services/Webhooks/* - src/Services/Webhooks/*
- k8s/helm/webhooks-api/* - k8s/helm/webhooks-api/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build webhooks pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build webhooks.api' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build webhooks
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build webhooks.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push webhooks projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push webhooks.api' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push webhooks
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push webhooks.api'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build webhooks
inputs:
dockerComposeCommand: 'build webhooks.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push webhooks
inputs:
dockerComposeCommand: 'push webhooks.api'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: webhooks.api
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -12,34 +10,71 @@ trigger:
- src/BuildingBlocks/* - src/BuildingBlocks/*
- src/Web/WebhookClient/* - src/Web/WebhookClient/*
- k8s/helm/webhooks-web/* - k8s/helm/webhooks-web/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build webhooks.client pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build webhooks.client' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build webhooks.client
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build webhooks.client'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push webhooks.client projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push webhooks.client' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push webhooks.client
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push webhooks.client'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build webhooks.client
inputs:
dockerComposeCommand: 'build webhooks.client'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push webhooks.client
inputs:
dockerComposeCommand: 'push webhooks.client'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)v
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: webhooks.client
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -12,34 +10,71 @@ trigger:
- src/BuildingBlocks/* - src/BuildingBlocks/*
- src/Web/WebMVC/* - src/Web/WebMVC/*
- k8s/helm/webmvc/* - k8s/helm/webmvc/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build webmvc pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build webmvc' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build webmvc
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build webmvc'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push webmvc projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push webmvc' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push webmvc
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push webmvc'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build webmvc
inputs:
dockerComposeCommand: 'build webmvc'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push webmvc
inputs:
dockerComposeCommand: 'push webmvc'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: webmvc
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -12,34 +10,73 @@ trigger:
- src/BuildingBlocks/* - src/BuildingBlocks/*
- src/Web/WebSPA/* - src/Web/WebSPA/*
- k8s/helm/webspa/* - k8s/helm/webspa/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build webspa pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build webspa' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build webspa
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build webspa'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push webspa projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push webspa' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push webspa
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push webspa'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build webspa
inputs:
dockerComposeCommand: 'build webspa'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
NODE_IMAGE=stefanscherer/node-windows:8.11
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push webspa
inputs:
dockerComposeCommand: 'push webspa'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
NODE_IMAGE=stefanscherer/node-windows:8.11
- template: ../multiarch.yaml
parameters:
image: webspa
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -1,5 +1,3 @@
pool:
vmImage: 'ubuntu-16.04'
variables: variables:
registryEndpoint: eshop-registry registryEndpoint: eshop-registry
trigger: trigger:
@ -12,34 +10,71 @@ trigger:
- src/BuildingBlocks/* - src/BuildingBlocks/*
- src/Web/WebStatus/* - src/Web/WebStatus/*
- k8s/helm/webstatus/* - k8s/helm/webstatus/*
steps: jobs:
- task: DockerCompose@0 - job: BuildLinux
displayName: Compose build webstatus pool:
inputs: vmImage: 'ubuntu-16.04'
dockerComposeCommand: 'build webstatus' steps:
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose build webstatus
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'build webstatus'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: DockerCompose@0 qualifyImageNames: true
displayName: Compose push webstatus projectName: ""
inputs: dockerComposeFileArgs: |
dockerComposeCommand: 'push webstatus' TAG=$(Build.SourceBranchName)
containerregistrytype: Container Registry - task: DockerCompose@0
dockerRegistryEndpoint: $(registryEndpoint) displayName: Compose push webstatus
dockerComposeFile: docker-compose.yml inputs:
qualifyImageNames: true dockerComposeCommand: 'push webstatus'
projectName: "" containerregistrytype: Container Registry
dockerComposeFileArgs: | dockerRegistryEndpoint: $(registryEndpoint)
TAG=$(Build.SourceBranchName) dockerComposeFile: docker-compose.yml
- task: CopyFiles@2 qualifyImageNames: true
inputs: projectName: ""
sourceFolder: $(Build.SourcesDirectory)/k8s/helm dockerComposeFileArgs: |
targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm TAG=$(Build.SourceBranchName)
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
inputs: inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm sourceFolder: $(Build.SourcesDirectory)/k8s/helm
artifactName: helm targetFolder: $(Build.ArtifactStagingDirectory)/k8s/helm
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/k8s/helm
artifactName: helm
- job: BuildWindows
pool:
vmImage: 'windows-2019'
steps:
- task: DockerCompose@0
displayName: Compose build webstatus
inputs:
dockerComposeCommand: 'build webstatus'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- task: DockerCompose@0
displayName: Compose push webstatus
inputs:
dockerComposeCommand: 'push webstatus'
containerregistrytype: Container Registry
dockerRegistryEndpoint: $(registryEndpoint)
dockerComposeFile: docker-compose.yml
qualifyImageNames: true
projectName: ""
dockerComposeFileArgs: |
TAG=$(Build.SourceBranchName)
PLATFORM=win
- template: ../multiarch.yaml
parameters:
image: webstatus
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)

View File

@ -214,6 +214,8 @@ services:
build: build:
context: . context: .
dockerfile: src/Web/WebSPA/Dockerfile dockerfile: src/Web/WebSPA/Dockerfile
args:
- NODE_IMAGE=${NODE_IMAGE:-node:8.11}
# depends_on: # depends_on:
# - webshoppingagg # - webshoppingagg
# - webshoppingapigw # - webshoppingapigw

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/ApiGateways/ApiGw-Base/ WORKDIR /src/src/ApiGateways/ApiGw-Base/
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/ApiGateways/Mobile.Bff.Shopping/aggregator WORKDIR /src/src/ApiGateways/Mobile.Bff.Shopping/aggregator
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/ApiGateways/Web.Bff.Shopping/aggregator WORKDIR /src/src/ApiGateways/Web.Bff.Shopping/aggregator
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/Services/Basket/Basket.API WORKDIR /src/src/Services/Basket/Basket.API
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/Services/Catalog/Catalog.API WORKDIR /src/src/Services/Catalog/Catalog.API
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/Services/Identity/Identity.API WORKDIR /src/src/Services/Identity/Identity.API
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/Services/Location/Locations.API WORKDIR /src/src/Services/Location/Locations.API
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/Services/Marketing/Marketing.API WORKDIR /src/src/Services/Marketing/Marketing.API
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/Services/Ordering/Ordering.API WORKDIR /src/src/Services/Ordering/Ordering.API
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/Services/Ordering/Ordering.BackgroundTasks WORKDIR /src/src/Services/Ordering/Ordering.BackgroundTasks
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/Services/Ordering/Ordering.SignalrHub WORKDIR /src/src/Services/Ordering/Ordering.SignalrHub
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/Services/Payment/Payment.API WORKDIR /src/src/Services/Payment/Payment.API
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR "/src/src/Services/Webhooks/Webhooks.API" WORKDIR "/src/src/Services/Webhooks/Webhooks.API"
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/Web/WebMVC WORKDIR /src/src/Web/WebMVC
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -20,9 +20,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
COPY --from=node-build /web/wwwroot /src/src/Web/WebSPA/wwwroot/ COPY --from=node-build /web/wwwroot /src/src/Web/WebSPA/wwwroot/
WORKDIR /src/src/Web/WebSPA WORKDIR /src/src/Web/WebSPA

View File

@ -13,9 +13,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/Web/WebStatus WORKDIR /src/src/Web/WebStatus
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app

View File

@ -14,9 +14,6 @@ COPY src/BuildingBlocks/*/*/*.csproj /src/csproj-files/
COPY src/Services/*/*/*.csproj /src/csproj-files/ COPY src/Services/*/*/*.csproj /src/csproj-files/
COPY src/Web/*/*.csproj /src/csproj-files/ COPY src/Web/*/*.csproj /src/csproj-files/
ARG RUN=pwd
RUN ${RUN}
COPY . . COPY . .
WORKDIR /src/src/Web/WebhookClient WORKDIR /src/src/Web/WebhookClient
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app