Changed Azure pipeline to use Docker file

This commit is contained in:
Andrea Bondavalli 2023-02-04 18:11:54 +01:00
parent 447e1dc8db
commit f8b5093d3a

View File

@ -1,15 +1,29 @@
# C/C++ with GCC # Docker
# Build your C/C++ project with GCC using make. # Build a Docker image
# Add steps that publish test results, save build artifacts, deploy, and more: # https://docs.microsoft.com/azure/devops/pipelines/languages/docker
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc
trigger: trigger:
- master - master
resources:
- repo: self
variables:
tag: '$(Build.BuildId)'
stages:
- stage: Build
displayName: Build image
jobs:
- job: Build
displayName: Build
pool: pool:
vmImage: ubuntu-latest vmImage: ubuntu-latest
steps: steps:
- script: | - task: Docker@2
./build.sh displayName: Build an image
displayName: 'build' inputs:
command: build
dockerfile: '$(Build.SourcesDirectory)/Dockerfile.daemon_tests'
tags: |
$(tag)