Skip to content

Commit

Permalink
Merge pull request #9 from logivations/DO-218-Add-2-more=repos-to-dro…
Browse files Browse the repository at this point in the history
…ne-CI

Do 218 add 2 more repos to drone ci
  • Loading branch information
serhiivysotskyi authored Feb 13, 2024
2 parents 869c06e + 6e0029b commit c9a78e4
Showing 1 changed file with 103 additions and 0 deletions.
103 changes: 103 additions & 0 deletions .drone.yml
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

0 comments on commit c9a78e4

Please sign in to comment.