Changed Azure pipeline to use Docker file
This commit is contained in:
parent
447e1dc8db
commit
f8b5093d3a
@ -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
|
||||||
|
|
||||||
pool:
|
resources:
|
||||||
vmImage: ubuntu-latest
|
- repo: self
|
||||||
|
|
||||||
steps:
|
variables:
|
||||||
- script: |
|
tag: '$(Build.BuildId)'
|
||||||
./build.sh
|
|
||||||
displayName: 'build'
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user