Merge pull request #54 from dotnet-architecture/dev
eShopOnContainers fork
This commit is contained in:
commit
2169c690da
@ -16,68 +16,12 @@ trigger:
|
|||||||
- src/ApiGateways/Mobile.Bff.Shopping/aggregator/*
|
- src/ApiGateways/Mobile.Bff.Shopping/aggregator/*
|
||||||
- src/ApiGateways/Web.Bff.Shopping/aggregator/*
|
- src/ApiGateways/Web.Bff.Shopping/aggregator/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: mobileshoppingapigw mobilemarketingapigw webshoppingapigw webmarketingapigw
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- task: DockerCompose@0
|
helmfrom: $(Build.SourcesDirectory)/k8s/helm
|
||||||
displayName: Compose build apigws
|
helmto: $(Build.ArtifactStagingDirectory)/k8s/helm
|
||||||
inputs:
|
|
||||||
dockerComposeCommand: 'build mobileshoppingapigw mobilemarketingapigw webshoppingapigw webmarketingapigw'
|
|
||||||
containerregistrytype: Container Registry
|
|
||||||
dockerRegistryEndpoint: $(registryEndpoint)
|
|
||||||
dockerComposeFile: docker-compose.yml
|
|
||||||
qualifyImageNames: true
|
|
||||||
projectName: ""
|
|
||||||
dockerComposeFileArgs: |
|
|
||||||
TAG=$(Build.SourceBranchName)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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 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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: ocelotapigw
|
image: ocelotapigw
|
||||||
|
@ -11,68 +11,12 @@ trigger:
|
|||||||
- src/Services/Basket/*
|
- src/Services/Basket/*
|
||||||
- k8s/helm/basket-api/*
|
- k8s/helm/basket-api/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: basket.api
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- task: DockerCompose@0
|
helmfrom: $(Build.SourcesDirectory)/k8s/helm
|
||||||
displayName: Compose build basket
|
helmto: $(Build.ArtifactStagingDirectory)/k8s/helm
|
||||||
inputs:
|
|
||||||
dockerComposeCommand: 'build basket.api'
|
|
||||||
containerregistrytype: Container Registry
|
|
||||||
dockerRegistryEndpoint: $(registryEndpoint)
|
|
||||||
dockerComposeFile: docker-compose.yml
|
|
||||||
qualifyImageNames: true
|
|
||||||
projectName: ""
|
|
||||||
dockerComposeFileArgs: |
|
|
||||||
TAG=$(Build.SourceBranchName)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: basket.api
|
image: basket.api
|
||||||
|
92
build/azure-devops/buildimages.yaml
Normal file
92
build/azure-devops/buildimages.yaml
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
parameters:
|
||||||
|
services: ''
|
||||||
|
registryEndpoint: ''
|
||||||
|
helmfrom: ''
|
||||||
|
helmto: ''
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- job: BuildContainersForPR_Linux
|
||||||
|
condition: eq('${{ variables['Build.Reason'] }}', 'PullRequest')
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-16.04'
|
||||||
|
steps:
|
||||||
|
- bash: docker-compose build ${{ parameters.services }}
|
||||||
|
displayName: Create multiarch manifest
|
||||||
|
env:
|
||||||
|
TAG: ${{ variables['Build.SourceBranchName'] }}
|
||||||
|
- job: BuildContainersForPR_Windows
|
||||||
|
condition: eq('${{ variables['Build.Reason'] }}', 'PullRequest')
|
||||||
|
pool:
|
||||||
|
vmImage: 'windows-2019'
|
||||||
|
steps:
|
||||||
|
- bash: docker-compose build ${{ parameters.services }}
|
||||||
|
displayName: Create multiarch manifest
|
||||||
|
env:
|
||||||
|
TAG: ${{ variables['Build.SourceBranchName'] }}
|
||||||
|
PLATFORM: win
|
||||||
|
NODE_IMAGE: stefanscherer/node-windows:8.11
|
||||||
|
- job: BuildLinux
|
||||||
|
condition: ne('${{ variables['Build.Reason'] }}', 'PullRequest')
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-16.04'
|
||||||
|
steps:
|
||||||
|
- task: DockerCompose@0
|
||||||
|
displayName: Compose build ${{ parameters.services }}
|
||||||
|
inputs:
|
||||||
|
dockerComposeCommand: 'build ${{ parameters.services }}'
|
||||||
|
containerregistrytype: Container Registry
|
||||||
|
dockerRegistryEndpoint: ${{ parameters.registryEndpoint }}
|
||||||
|
dockerComposeFile: docker-compose.yml
|
||||||
|
qualifyImageNames: true
|
||||||
|
projectName: ""
|
||||||
|
dockerComposeFileArgs: |
|
||||||
|
TAG=${{ variables['Build.SourceBranchName'] }}
|
||||||
|
- task: DockerCompose@0
|
||||||
|
displayName: Compose push ${{ parameters.images }}
|
||||||
|
inputs:
|
||||||
|
dockerComposeCommand: 'push ${{ parameters.services }}'
|
||||||
|
containerregistrytype: Container Registry
|
||||||
|
dockerRegistryEndpoint: ${{ parameters.registryEndpoint }}
|
||||||
|
dockerComposeFile: docker-compose.yml
|
||||||
|
qualifyImageNames: true
|
||||||
|
projectName: ""
|
||||||
|
dockerComposeFileArgs: |
|
||||||
|
TAG=${{ variables['Build.SourceBranchName'] }}
|
||||||
|
- task: CopyFiles@2
|
||||||
|
inputs:
|
||||||
|
sourceFolder: ${{ parameters.helmfrom }}
|
||||||
|
targetFolder: ${{ parameters.helmto }}
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
inputs:
|
||||||
|
pathtoPublish: ${{ parameters.helmto }}
|
||||||
|
artifactName: helm
|
||||||
|
- job: BuildWindows
|
||||||
|
condition: ne('${{ variables['Build.Reason'] }}', 'PullRequest')
|
||||||
|
pool:
|
||||||
|
vmImage: 'windows-2019'
|
||||||
|
steps:
|
||||||
|
- task: DockerCompose@0
|
||||||
|
displayName: Compose build ${{ parameters.services }}
|
||||||
|
inputs:
|
||||||
|
dockerComposeCommand: 'build ${{ parameters.services }}'
|
||||||
|
containerregistrytype: Container Registry
|
||||||
|
dockerRegistryEndpoint: ${{ parameters.registryEndpoint }}
|
||||||
|
dockerComposeFile: docker-compose.yml
|
||||||
|
qualifyImageNames: true
|
||||||
|
projectName: ""
|
||||||
|
dockerComposeFileArgs: |
|
||||||
|
TAG=${{ variables['Build.SourceBranchName'] }}
|
||||||
|
PLATFORM=win
|
||||||
|
NODE_IMAGE=stefanscherer/node-windows:8.11
|
||||||
|
- task: DockerCompose@0
|
||||||
|
displayName: Compose push ${{ parameters.services }}
|
||||||
|
inputs:
|
||||||
|
dockerComposeCommand: 'push ${{ parameters.services }}'
|
||||||
|
containerregistrytype: Container Registry
|
||||||
|
dockerRegistryEndpoint: ${{ parameters.registryEndpoint }}
|
||||||
|
dockerComposeFile: docker-compose.yml
|
||||||
|
qualifyImageNames: true
|
||||||
|
projectName: ""
|
||||||
|
dockerComposeFileArgs: |
|
||||||
|
TAG=${{ variables['Build.SourceBranchName'] }}
|
||||||
|
PLATFORM=win
|
@ -11,68 +11,12 @@ trigger:
|
|||||||
- src/Services/Catalog/*
|
- src/Services/Catalog/*
|
||||||
- k8s/helm/catalog-api/*
|
- k8s/helm/catalog-api/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: catalog.api
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- task: DockerCompose@0
|
helmfrom: $(Build.SourcesDirectory)/k8s/helm
|
||||||
displayName: Compose build catalog
|
helmto: $(Build.ArtifactStagingDirectory)/k8s/helm
|
||||||
inputs:
|
|
||||||
dockerComposeCommand: 'build catalog.api'
|
|
||||||
containerregistrytype: Container Registry
|
|
||||||
dockerRegistryEndpoint: $(registryEndpoint)
|
|
||||||
dockerComposeFile: docker-compose.yml
|
|
||||||
qualifyImageNames: true
|
|
||||||
projectName: ""
|
|
||||||
dockerComposeFileArgs: |
|
|
||||||
TAG=$(Build.SourceBranchName)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: catalog.api
|
image: catalog.api
|
||||||
|
@ -11,68 +11,12 @@ trigger:
|
|||||||
- src/Services/Identity/*
|
- src/Services/Identity/*
|
||||||
- k8s/helm/identity-api/*
|
- k8s/helm/identity-api/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: identity.api
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- task: DockerCompose@0
|
helmfrom: $(Build.SourcesDirectory)/k8s/helm
|
||||||
displayName: Compose build identity
|
helmto: $(Build.ArtifactStagingDirectory)/k8s/helm
|
||||||
inputs:
|
|
||||||
dockerComposeCommand: 'build identity.api'
|
|
||||||
containerregistrytype: Container Registry
|
|
||||||
dockerRegistryEndpoint: $(registryEndpoint)
|
|
||||||
dockerComposeFile: docker-compose.yml
|
|
||||||
qualifyImageNames: true
|
|
||||||
projectName: ""
|
|
||||||
dockerComposeFileArgs: |
|
|
||||||
TAG=$(Build.SourceBranchName)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: identity.api
|
image: identity.api
|
||||||
|
@ -11,68 +11,12 @@ trigger:
|
|||||||
- src/Services/Location/*
|
- src/Services/Location/*
|
||||||
- k8s/helm/locations-api/*
|
- k8s/helm/locations-api/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: locations.api
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- task: DockerCompose@0
|
helmfrom: $(Build.SourcesDirectory)/k8s/helm
|
||||||
displayName: Compose build locations
|
helmto: $(Build.ArtifactStagingDirectory)/k8s/helm
|
||||||
inputs:
|
|
||||||
dockerComposeCommand: 'build locations.api'
|
|
||||||
containerregistrytype: Container Registry
|
|
||||||
dockerRegistryEndpoint: $(registryEndpoint)
|
|
||||||
dockerComposeFile: docker-compose.yml
|
|
||||||
qualifyImageNames: true
|
|
||||||
projectName: ""
|
|
||||||
dockerComposeFileArgs: |
|
|
||||||
TAG=$(Build.SourceBranchName)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: locations.api
|
image: locations.api
|
||||||
|
@ -11,68 +11,12 @@ trigger:
|
|||||||
- src/Services/Marketing/*
|
- src/Services/Marketing/*
|
||||||
- k8s/helm/marketing-api/*
|
- k8s/helm/marketing-api/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: marketing.api
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- task: DockerCompose@0
|
helmfrom: $(Build.SourcesDirectory)/k8s/helm
|
||||||
displayName: Compose build marketing
|
helmto: $(Build.ArtifactStagingDirectory)/k8s/helm
|
||||||
inputs:
|
|
||||||
dockerComposeCommand: 'build marketing.api'
|
|
||||||
containerregistrytype: Container Registry
|
|
||||||
dockerRegistryEndpoint: $(registryEndpoint)
|
|
||||||
dockerComposeFile: docker-compose.yml
|
|
||||||
qualifyImageNames: true
|
|
||||||
projectName: ""
|
|
||||||
dockerComposeFileArgs: |
|
|
||||||
TAG=$(Build.SourceBranchName)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: marketing.api
|
image: marketing.api
|
||||||
|
@ -10,68 +10,12 @@ trigger:
|
|||||||
- src/ApiGateways/Mobile.Bff.Shopping/aggregator/*
|
- src/ApiGateways/Mobile.Bff.Shopping/aggregator/*
|
||||||
- k8s/helm/mobileshoppingagg/*
|
- k8s/helm/mobileshoppingagg/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: mobileshoppingagg
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- task: DockerCompose@0
|
helmfrom: $(Build.SourcesDirectory)/k8s/helm
|
||||||
displayName: Compose build mobileshoppingagg
|
helmto: $(Build.ArtifactStagingDirectory)/k8s/helm
|
||||||
inputs:
|
|
||||||
dockerComposeCommand: 'build mobileshoppingagg'
|
|
||||||
containerregistrytype: Container Registry
|
|
||||||
dockerRegistryEndpoint: $(registryEndpoint)
|
|
||||||
dockerComposeFile: docker-compose.yml
|
|
||||||
qualifyImageNames: true
|
|
||||||
projectName: ""
|
|
||||||
dockerComposeFileArgs: |
|
|
||||||
TAG=$(Build.SourceBranchName)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: mobileshoppingagg
|
image: mobileshoppingagg
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
parameters:
|
parameters:
|
||||||
image: ''
|
image: ''
|
||||||
branch: ''
|
branch: ''
|
||||||
|
registry: 'eshop'
|
||||||
registryEndpoint: ''
|
registryEndpoint: ''
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: manifest
|
- job: manifest
|
||||||
|
condition: and(succeeded(),ne('${{ variables['Build.Reason'] }}', 'PullRequest'))
|
||||||
|
dependsOn:
|
||||||
|
- BuildWindows
|
||||||
|
- BuildLinux
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'Ubuntu 16.04'
|
vmImage: 'Ubuntu 16.04'
|
||||||
steps:
|
steps:
|
||||||
@ -15,13 +20,11 @@ jobs:
|
|||||||
containerregistrytype: 'Container Registry'
|
containerregistrytype: 'Container Registry'
|
||||||
dockerRegistryEndpoint: ${{ parameters.registryEndpoint }}
|
dockerRegistryEndpoint: ${{ parameters.registryEndpoint }}
|
||||||
- bash: |
|
- bash: |
|
||||||
mkdir -p ~/.docker
|
mkdir -p ~/.docker
|
||||||
echo '{ "experimental": "enabled" }' > ~/.docker/config.json
|
sed '$ s/.$//' $DOCKER_CONFIG/config.json > ~/.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 }}
|
echo ',"experimental": "enabled" }' >> ~/.docker/config.json
|
||||||
docker --config ~/.docker manifest create eshop/${{ parameters.image }}:latest eshop/${{ parameters.image }}:linux-latest eshop/${{ parameters.image }}:win-latest
|
docker --config ~/.docker manifest create ${{ parameters.registry }}/${{ parameters.image }}:${{ parameters.branch }} ${{ parameters.registry }}/${{ parameters.image }}:linux-${{ parameters.branch }} ${{ parameters.registry }}/${{ parameters.image }}:win-${{ parameters.branch }}
|
||||||
docker --config ~/.docker push eshop/${{ parameters.image }}:${{ parameters.branch }}
|
docker --config ~/.docker manifest create ${{ parameters.registry }}/${{ parameters.image }}:latest ${{ parameters.registry }}/${{ parameters.image }}:linux-latest ${{ parameters.registry }}/${{ parameters.image }}:win-latest
|
||||||
docker --config ~/.docker push eshop/${{ parameters.image }}:latest
|
docker --config ~/.docker manifest push ${{ parameters.registry }}/${{ parameters.image }}:${{ parameters.branch }}
|
||||||
displayName: 'Create Manifest'
|
docker --config ~/.docker manifest push ${{ parameters.registry }}/${{ parameters.image }}:latest
|
||||||
dependsOn:
|
displayName: Create multiarch manifest
|
||||||
- BuildWindows
|
|
||||||
- BuildLinux
|
|
||||||
|
@ -13,68 +13,12 @@ trigger:
|
|||||||
- k8s/helm/ordering-backgroundtasks/*
|
- k8s/helm/ordering-backgroundtasks/*
|
||||||
- k8s/helm/ordering-signalrhub/*
|
- k8s/helm/ordering-signalrhub/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: ordering.api
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- task: DockerCompose@0
|
helmfrom: $(Build.SourcesDirectory)/k8s/helm
|
||||||
displayName: Compose build ordering
|
helmto: $(Build.ArtifactStagingDirectory)/k8s/helm
|
||||||
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)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: ordering.api
|
image: ordering.api
|
||||||
|
@ -11,68 +11,12 @@ trigger:
|
|||||||
- src/Services/Payment/*
|
- src/Services/Payment/*
|
||||||
- k8s/helm/payment-api/*
|
- k8s/helm/payment-api/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: payment.api
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- task: DockerCompose@0
|
helmfrom: $(Build.SourcesDirectory)/k8s/helm
|
||||||
displayName: Compose build payment
|
helmto: $(Build.ArtifactStagingDirectory)/k8s/helm
|
||||||
inputs:
|
|
||||||
dockerComposeCommand: 'build payment.api'
|
|
||||||
containerregistrytype: Container Registry
|
|
||||||
dockerRegistryEndpoint: $(registryEndpoint)
|
|
||||||
dockerComposeFile: docker-compose.yml
|
|
||||||
qualifyImageNames: true
|
|
||||||
projectName: ""
|
|
||||||
dockerComposeFileArgs: |
|
|
||||||
TAG=$(Build.SourceBranchName)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: payment.api
|
image: payment.api
|
||||||
|
@ -10,68 +10,12 @@ trigger:
|
|||||||
- src/ApiGateways/Web.Bff.Shopping/aggregator/*
|
- src/ApiGateways/Web.Bff.Shopping/aggregator/*
|
||||||
- k8s/helm/webshoppingagg/*
|
- k8s/helm/webshoppingagg/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: webshoppingagg
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- task: DockerCompose@0
|
helmfrom: $(Build.SourcesDirectory)/k8s/helm
|
||||||
displayName: Compose build webshoppingagg
|
helmto: $(Build.ArtifactStagingDirectory)/k8s/helm
|
||||||
inputs:
|
|
||||||
dockerComposeCommand: 'build webshoppingagg'
|
|
||||||
containerregistrytype: Container Registry
|
|
||||||
dockerRegistryEndpoint: $(registryEndpoint)
|
|
||||||
dockerComposeFile: docker-compose.yml
|
|
||||||
qualifyImageNames: true
|
|
||||||
projectName: ""
|
|
||||||
dockerComposeFileArgs: |
|
|
||||||
TAG=$(Build.SourceBranchName)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: webshoppingagg
|
image: webshoppingagg
|
||||||
|
@ -11,68 +11,12 @@ trigger:
|
|||||||
- src/Services/Webhooks/*
|
- src/Services/Webhooks/*
|
||||||
- k8s/helm/webhooks-api/*
|
- k8s/helm/webhooks-api/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: webhooks.api
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- task: DockerCompose@0
|
helmfrom: $(Build.SourcesDirectory)/k8s/helm
|
||||||
displayName: Compose build webhooks
|
helmto: $(Build.ArtifactStagingDirectory)/k8s/helm
|
||||||
inputs:
|
|
||||||
dockerComposeCommand: 'build webhooks.api'
|
|
||||||
containerregistrytype: Container Registry
|
|
||||||
dockerRegistryEndpoint: $(registryEndpoint)
|
|
||||||
dockerComposeFile: docker-compose.yml
|
|
||||||
qualifyImageNames: true
|
|
||||||
projectName: ""
|
|
||||||
dockerComposeFileArgs: |
|
|
||||||
TAG=$(Build.SourceBranchName)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: webhooks.api
|
image: webhooks.api
|
||||||
|
@ -11,68 +11,12 @@ trigger:
|
|||||||
- src/Web/WebhookClient/*
|
- src/Web/WebhookClient/*
|
||||||
- k8s/helm/webhooks-web/*
|
- k8s/helm/webhooks-web/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: webhooks.client
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- task: DockerCompose@0
|
helmfrom: $(Build.SourcesDirectory)/k8s/helm
|
||||||
displayName: Compose build webhooks.client
|
helmto: $(Build.ArtifactStagingDirectory)/k8s/helm
|
||||||
inputs:
|
|
||||||
dockerComposeCommand: 'build webhooks.client'
|
|
||||||
containerregistrytype: Container Registry
|
|
||||||
dockerRegistryEndpoint: $(registryEndpoint)
|
|
||||||
dockerComposeFile: docker-compose.yml
|
|
||||||
qualifyImageNames: true
|
|
||||||
projectName: ""
|
|
||||||
dockerComposeFileArgs: |
|
|
||||||
TAG=$(Build.SourceBranchName)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: webhooks.client
|
image: webhooks.client
|
||||||
|
@ -11,68 +11,10 @@ trigger:
|
|||||||
- src/Web/WebMVC/*
|
- src/Web/WebMVC/*
|
||||||
- k8s/helm/webmvc/*
|
- k8s/helm/webmvc/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: webmvc
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- 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)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: webmvc
|
image: webmvc
|
||||||
|
@ -11,70 +11,10 @@ trigger:
|
|||||||
- src/Web/WebSPA/*
|
- src/Web/WebSPA/*
|
||||||
- k8s/helm/webspa/*
|
- k8s/helm/webspa/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: webspa
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- 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)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: webspa
|
image: webspa
|
||||||
|
@ -11,68 +11,10 @@ trigger:
|
|||||||
- src/Web/WebStatus/*
|
- src/Web/WebStatus/*
|
||||||
- k8s/helm/webstatus/*
|
- k8s/helm/webstatus/*
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildLinux
|
- template: ../buildimages.yaml
|
||||||
pool:
|
parameters:
|
||||||
vmImage: 'ubuntu-16.04'
|
services: webstatus
|
||||||
steps:
|
registryEndpoint: $(registryEndpoint)
|
||||||
- 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)
|
|
||||||
- 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)
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(Build.SourcesDirectory)/k8s/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
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: webstatus
|
image: webstatus
|
||||||
|
BIN
img/eShopScreen.png
Normal file
BIN
img/eShopScreen.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 334 KiB |
@ -7,7 +7,7 @@ This file contains links to the documentation of the project.
|
|||||||
## Documentation included in files
|
## Documentation included in files
|
||||||
|
|
||||||
* [Branch Guide](../branch-guide.md): List of branches used and their purpose.
|
* [Branch Guide](../branch-guide.md): List of branches used and their purpose.
|
||||||
* [vsts-docs folder](../vsts-docs/readme.md): Information about how to setup a CI/CD procedure using VSTS
|
* [vsts-docs folder](../vsts-docs/readme.md): Information about how to setup a CI/CD procedure using Azure DevOps
|
||||||
* [Kubernetes](../k8s/readme.md): Information about how to deploy eShopOnContainers in a kubernetes cluster, and how to setup a CI/CD for k8s using VSTS
|
* [Kubernetes](../k8s/readme.md): Information about how to deploy eShopOnContainers in a kubernetes cluster, and how to setup a CI/CD for k8s using VSTS
|
||||||
* [deploy](../deploy/readme.md): Information about how deploy Azure resources using the Azure CLI 2.0.
|
* [deploy](../deploy/readme.md): Information about how deploy Azure resources using the Azure CLI 2.0.
|
||||||
* [.env file](./README.ENV.md): What is the `.env` file and how to use it to configure eShopOnContainers to use external resources (like Azure)
|
* [.env file](./README.ENV.md): What is the `.env` file and how to use it to configure eShopOnContainers to use external resources (like Azure)
|
||||||
|
@ -31,7 +31,7 @@ namespace UnitTest.Ordering.Application
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task Create_order_with_requestId_success()
|
public async Task Cancel_order_with_requestId_success()
|
||||||
{
|
{
|
||||||
//Arrange
|
//Arrange
|
||||||
_mediatorMock.Setup(x => x.Send(It.IsAny<IdentifiedCommand<CancelOrderCommand, bool>>(), default(CancellationToken)))
|
_mediatorMock.Setup(x => x.Send(It.IsAny<IdentifiedCommand<CancelOrderCommand, bool>>(), default(CancellationToken)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user