forked from open-mmlab/mmdetection
-
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 #9 from logivations/DO-218-Add-2-more=repos-to-dro…
…ne-CI Do 218 add 2 more repos to drone ci
- Loading branch information
Showing
1 changed file
with
103 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,103 @@ | ||
--- | ||
####################################################################################################################### | ||
####################################################################################################################### | ||
####################################################################################################################### | ||
####################### Jobs below are used to build only ######################################### | ||
####################### master branches for all containers ######################################### | ||
####################### ######################################### | ||
####################################################################################################################### | ||
####################################################################################################################### | ||
####################################################################################################################### | ||
|
||
# This pipeline would be used after each merge request to build mmdetection:latest docker image | ||
kind: pipeline | ||
type: docker | ||
name: mmdetecion LS_mmdet_latest | ||
|
||
platform: | ||
arch: amd64 | ||
os: linux | ||
|
||
trigger: | ||
branch: | ||
- master | ||
event: | ||
- push | ||
|
||
clone: | ||
depth: 1 | ||
|
||
steps: | ||
- name: Build latest mmdetecion LS_mmdet_latest docker image | ||
image: plugins/docker:20.14 | ||
environment: | ||
DOCKER_BUILDKIT: 1 | ||
settings: | ||
dockerfile: docker/Dockerfile | ||
context: docker/ | ||
registry: quay.io | ||
repo: quay.io/logivations/ml_all | ||
privileged: true | ||
build_args: | ||
- BUILDKIT_INLINE_CACHE=1 | ||
no_cache: true | ||
tags: | ||
- LS_mmdet_latest | ||
- LS_mmdet_latest_${DRONE_COMMIT_SHA} | ||
username: | ||
from_secret: DOCKER_QUAY_USERNAME | ||
password: | ||
from_secret: DOCKER_QUAY_PASSWORD | ||
|
||
|
||
####################################################################################################################### | ||
####################################################################################################################### | ||
####################################################################################################################### | ||
####################### Jobs below are used to run ######################################### | ||
####################### pull request validation only ######################################### | ||
####################### ######################################### | ||
####################################################################################################################### | ||
####################################################################################################################### | ||
####################################################################################################################### | ||
|
||
# 2. Build docker image for mmdetection | ||
--- | ||
kind: pipeline | ||
type: docker | ||
name: PR validation build mmdetecion images | ||
|
||
platform: | ||
arch: amd64 | ||
os: linux | ||
|
||
trigger: | ||
event: | ||
include: | ||
- pull_request | ||
|
||
clone: | ||
depth: 50 | ||
|
||
steps: | ||
- name: Build LS_mmdet docker image for pull request | ||
image: plugins/docker:20.14 | ||
environment: | ||
DOCKER_BUILDKIT: 1 | ||
settings: | ||
dockerfile: docker/Dockerfile | ||
context: docker/ | ||
registry: quay.io | ||
repo: quay.io/logivations/ml_all | ||
privileged: true | ||
build_args: | ||
- BUILDKIT_INLINE_CACHE=1 | ||
cache_from: | ||
- quay.io/logivations/ml_all:LS_mmdet_latest | ||
- quay.io/logivations/ml_all:LS_mmdet_pr${DRONE_PULL_REQUEST} | ||
tags: | ||
- LS_mmdet_pr${DRONE_PULL_REQUEST} | ||
- LS_mmdet_pr${DRONE_PULL_REQUEST}_${DRONE_COMMIT_SHA} | ||
username: | ||
from_secret: DOCKER_QUAY_USERNAME | ||
password: | ||
from_secret: DOCKER_QUAY_PASSWORD |