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 1 commit
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
35 changes: 29 additions & 6 deletions .ci/azure-pipelines/env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ trigger:
include:
- .dev/docker/env/Dockerfile

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

schedules:
- cron: "0 0 * * *"
displayName: "Daily midnight build"
- cron: "0 0 0 * *"
displayName: "Sunday midnight build"
branches:
include:
- master
Expand All @@ -38,24 +44,41 @@ stages:
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) -t $(dockerHubID)/env:$(tag)
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)""
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')