# Conflicts: # README.md # docker-compose.override.yml # docker-compose.yml # k8s/helm/deploy-all.ps1 # k8s/helm/webstatus/values.yaml # src/ApiGateways/ApiGw-Base/Dockerfile # src/ApiGateways/ApiGw-Base/OcelotApiGw.csproj # src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile # src/ApiGateways/Mobile.Bff.Shopping/aggregator/Mobile.Shopping.HttpAggregator.csproj # src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile # src/ApiGateways/Web.Bff.Shopping/aggregator/Web.Shopping.HttpAggregator.csproj # src/BuildingBlocks/EventBus/EventBus.Tests/EventBus.Tests.csproj # src/BuildingBlocks/EventBus/IntegrationEventLogEF/IntegrationEventLogEF.csproj # src/BuildingBlocks/WebHostCustomization/WebHost.Customization/WebHost.Customization.csproj # src/Mobile/eShopOnContainers/eShopOnContainers.Core/eShopOnContainers.Core.csproj # src/Mobile/eShopOnContainers/eShopOnContainers.UnitTests/eShopOnContainers.UnitTests.csproj # src/Services/Basket/Basket.API/Basket.API.csproj # src/Services/Basket/Basket.API/Dockerfile # src/Services/Basket/Basket.FunctionalTests/Basket.FunctionalTests.csproj # src/Services/Basket/Basket.UnitTests/Basket.UnitTests.csproj # src/Services/Catalog/Catalog.API/Catalog.API.csproj # src/Services/Catalog/Catalog.API/Dockerfile # src/Services/Catalog/Catalog.FunctionalTests/Catalog.FunctionalTests.csproj # src/Services/Catalog/Catalog.UnitTests/Catalog.UnitTests.csproj # src/Services/Identity/Identity.API/Dockerfile # src/Services/Identity/Identity.API/Identity.API.csproj # src/Services/Location/Locations.API/Dockerfile # src/Services/Location/Locations.API/Locations.API.csproj # src/Services/Location/Locations.FunctionalTests/Locations.FunctionalTests.csproj # src/Services/Marketing/Infrastructure/AzureFunctions/marketing-functions.csproj # src/Services/Marketing/Marketing.API/Dockerfile # src/Services/Marketing/Marketing.API/Marketing.API.csproj # src/Services/Marketing/Marketing.FunctionalTests/Marketing.FunctionalTests.csproj # src/Services/Ordering/Ordering.API/Dockerfile # src/Services/Ordering/Ordering.API/Ordering.API.csproj # src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile # src/Services/Ordering/Ordering.BackgroundTasks/Ordering.BackgroundTasks.csproj # src/Services/Ordering/Ordering.Domain/Ordering.Domain.csproj # src/Services/Ordering/Ordering.FunctionalTests/Ordering.FunctionalTests.csproj # src/Services/Ordering/Ordering.Infrastructure/Ordering.Infrastructure.csproj # src/Services/Ordering/Ordering.SignalrHub/Dockerfile # src/Services/Ordering/Ordering.SignalrHub/Ordering.SignalrHub.csproj # src/Services/Ordering/Ordering.UnitTests/Ordering.UnitTests.csproj # src/Services/Payment/Payment.API/Dockerfile # src/Services/Payment/Payment.API/Payment.API.csproj # src/Services/Webhooks/Webhooks.API/Dockerfile # src/Services/Webhooks/Webhooks.API/Webhooks.API.csproj # src/Web/WebMVC/Dockerfile # src/Web/WebMVC/WebMVC.csproj # src/Web/WebSPA/Dockerfile # src/Web/WebSPA/WebSPA.csproj # src/Web/WebStatus/Dockerfile # src/Web/WebStatus/WebStatus.csproj # src/Web/WebStatus/appsettings.Development.json # src/Web/WebhookClient/Dockerfile # test/ServicesTests/Application.FunctionalTests/Application.FunctionalTests.csproj
93 lines
3.1 KiB
YAML
93 lines
3.1 KiB
YAML
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:10
|
|
- 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: src/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: src/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: src/docker-compose.yml
|
|
qualifyImageNames: true
|
|
projectName: ""
|
|
dockerComposeFileArgs: |
|
|
TAG=${{ variables['Build.SourceBranchName'] }}
|
|
PLATFORM=win
|
|
NODE_IMAGE=stefanscherer/node-windows:10
|
|
- task: DockerCompose@0
|
|
displayName: Compose push ${{ parameters.services }}
|
|
inputs:
|
|
dockerComposeCommand: 'push ${{ parameters.services }}'
|
|
containerregistrytype: Container Registry
|
|
dockerRegistryEndpoint: ${{ parameters.registryEndpoint }}
|
|
dockerComposeFile: src/docker-compose.yml
|
|
qualifyImageNames: true
|
|
projectName: ""
|
|
dockerComposeFileArgs: |
|
|
TAG=${{ variables['Build.SourceBranchName'] }}
|
|
PLATFORM=win
|