diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml new file mode 100644 index 00000000..4b5d714f --- /dev/null +++ b/azure-pipelines.yaml @@ -0,0 +1,13 @@ +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' + +steps: +- script: docker build --target=builder . + displayName: 'Run tests' + +- script: DOCKER_PASSWORD="$(docker_password)" tools/cd.sh "azdo-$(Build.BuildId)" + displayName: 'Push docker image' + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), ne(variables['docker_password'], ''))