forked from ros-navigation/navigation2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from logivations/task_AMRFM-1383_Auto-scaling_CI
added drone yml file
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
# This pipeline chain would be used on each open pull request to build new ml_all docker image and validate unit tests | ||
kind: pipeline | ||
name: PR validation build | ||
|
||
platform: | ||
arch: amd64 | ||
os: linux | ||
|
||
clone: | ||
disable: true | ||
|
||
steps: | ||
- name: Build ml_all docker image for pull request | ||
image: plugins/docker | ||
commands: | ||
- git clone https://github.com/logivations/deep_cv.git -b ${DRONE_PULL_REQUEST} | ||
- sed -i "/ARG NAV2_DEFAULT_BRANCH=/c\ARG NAV2_DEFAULT_BRANCH=${DRONE_PULL_REQUEST}" /deep_cv/docker/MlAllDockerfile | ||
volumes: | ||
- name: dockersock | ||
path: /var/run/docker.sock | ||
settings: | ||
dockerfile: deep_cv/docker/MlAllDockerfile | ||
context: deep_cv/docker/ | ||
registry: quay.io | ||
repo: quay.io/logivations/ml_all | ||
privileged: true | ||
tags: | ||
- nav2_${DRONE_PULL_REQUEST} | ||
username: | ||
from_secret: DOCKER_QUAY_USERNAME | ||
password: | ||
from_secret: DOCKER_QUAY_PASSWORD | ||
|
||
- name: unit-tests validation | ||
image: quay.io/logivations/ml_all:latest | ||
commands: | ||
- pwd | ||
- cd /data/workspace && git clone https://github.com/logivations/deep_cv.git | ||
- cd /data/workspace/deep_cv && pytest -v --color=yes --forked -n 2 --ignore-glob=**/disabled_tests/* lv/ | ||
environment: | ||
NVIDIA_VISIBLE_DEVICES: all | ||
depends_on: | ||
- Build ml_all docker image for pull request | ||
|
||
trigger: | ||
event: | ||
include: | ||
- pull_request | ||
|
||
volumes: | ||
- name: dockersock | ||
host: | ||
path: /var/run/docker.sock | ||
|
||
image_pull_secrets: | ||
- dockerconfig_prd |