From f8b5093d3a8599ccb5203e4b20f9722114caef24 Mon Sep 17 00:00:00 2001 From: Andrea Bondavalli Date: Sat, 4 Feb 2023 18:11:54 +0100 Subject: [PATCH] Changed Azure pipeline to use Docker file --- azure-pipelines.yml | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 15fd560..8c1a1e6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,15 +1,29 @@ -# C/C++ with GCC -# Build your C/C++ project with GCC using make. -# Add steps that publish test results, save build artifacts, deploy, and more: -# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc +# Docker +# Build a Docker image +# https://docs.microsoft.com/azure/devops/pipelines/languages/docker trigger: - master -pool: - vmImage: ubuntu-latest +resources: +- repo: self -steps: -- script: | - ./build.sh - displayName: 'build' +variables: + tag: '$(Build.BuildId)' + +stages: +- stage: Build + displayName: Build image + jobs: + - job: Build + displayName: Build + pool: + vmImage: ubuntu-latest + steps: + - task: Docker@2 + displayName: Build an image + inputs: + command: build + dockerfile: '$(Build.SourcesDirectory)/Dockerfile.daemon_tests' + tags: | + $(tag)