Created
September 4, 2018 10:05
-
-
Save christiansparre/ec315dc4244833ddec72ce37312f8ece to your computer and use it in GitHub Desktop.
VstsDockerBuild VSTS YAML config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| queue: | |
| name: Hosted Linux Preview | |
| steps: | |
| - task: DockerCompose@0 | |
| displayName: 'Build and tag images' | |
| inputs: | |
| azureSubscription: '<<Azure Subscription Name>>' | |
| azureContainerRegistry: '{"loginServer":"<<ACR Login server>>azurecr.io", "id" : "<<ACR id>>"}' | |
| action: 'Build services' | |
| additionalImageTags: '$(Build.BuildNumber)' | |
| includeLatestTag: true | |
| - task: DockerCompose@0 | |
| displayName: 'Run unit tests' | |
| inputs: | |
| containerregistrytype: 'Container Registry' | |
| dockerComposeFile: 'docker-compose.tests.yml' | |
| qualifyImageNames: false | |
| dockerComposeCommand: 'up --abort-on-container-exit' | |
| - task: DockerCompose@0 | |
| displayName: 'Run integration tests' | |
| inputs: | |
| azureSubscription: '<<Azure Subscription Name>>' | |
| azureContainerRegistry: '{"loginServer":"<<ACR Login server>>azurecr.io", "id" : "<<ACR id>>"}' | |
| dockerComposeFile: 'docker-compose.integration-tests.yml' | |
| additionalDockerComposeFiles: 'docker-compose.integration-tests-vsts.yml' | |
| qualifyImageNames: false | |
| dockerComposeCommand: 'up --abort-on-container-exit' | |
| - task: PublishTestResults@2 | |
| displayName: 'Publish Test Results' | |
| inputs: | |
| testRunner: VSTest | |
| testResultsFiles: '*.trx' | |
| searchFolder: '/opt/vsts/work/_temp' | |
| continueOnError: true | |
| condition: succeededOrFailed() | |
| - task: DockerCompose@0 | |
| displayName: 'Push images' | |
| inputs: | |
| azureSubscription: '<<Azure Subscription Name>>' | |
| azureContainerRegistry: '{"loginServer":"<<ACR Login server>>azurecr.io", "id" : "<<ACR id>>"}' | |
| action: 'Push services' | |
| additionalImageTags: '$(Build.BuildNumber)' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment