Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pipeline for building PCL's environment docker image #3843

Merged
merged 19 commits into from
May 4, 2020
Merged
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions .ci/azure-pipelines/env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Docker
# Build a Docker image
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker

trigger:
branches:
include:
- master
paths:
include:
- .dev/docker/env/Dockerfile

pr:
branches:
include:
- master
paths:
include:
- .dev/docker/env/Dockerfile

schedules:
- cron: "0 0 0 * *"
displayName: "Sunday midnight build"
branches:
include:
- master

resources:
- repo: self

variables:
dockerHub: "PersonalDockerHub"
kunaltyagi marked this conversation as resolved.
Show resolved Hide resolved
dockerHubID: "PointCloudLibrary"

stages:
- stage: BuildAndPush
displayName: "Build env"
jobs:
- job: BuildAndPush
timeoutInMinutes: 360
displayName: "env docker image: "
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Ubuntu 16.04:
CUDA_VERSION: 9.2
UBUNTU_DISTRO: 16.04
USE_CUDA: true
VTK_VERSION: 6
tag: 16.04
Ubuntu 18.04:
CUDA_VERSION: 10.2
UBUNTU_DISTRO: 18.04
USE_CUDA: true
VTK_VERSION: 6
tag: 18.04
Ubuntu 20.04:
CUDA_VERSION: 11
UBUNTU_DISTRO: 20.04
kunaltyagi marked this conversation as resolved.
Show resolved Hide resolved
VTK_VERSION: 7
USE_CUDA: ""
tag: 20.04
steps:
- task: Docker@2
displayName: "Build docker image: env:$(tag)"
inputs:
command: build
arguments: |
--no-cache
--build-arg UBUNTU_DISTRO=$(UBUNTU_DISTRO)
--build-arg VTK_VERSION=$(VTK_VERSION)
--build-arg USE_CUDA=true
kunaltyagi marked this conversation as resolved.
Show resolved Hide resolved
-t $(dockerHubID)/env:$(tag)
dockerfile: '$(Build.SourcesDirectory)/.dev/docker/env/Dockerfile'
tags: "$(tag)"
- task: Docker@2
displayName: "Push docker image env:$(tag)"
inputs:
command: push
containerRegistry: $(dockerHub)
repository: $(dockerHubID)/env
tags: "$(tag)"
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')