forked from open-mmlab/mmdeploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
81 lines (72 loc) · 1.65 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
kind: pipeline
type: docker
name: Label Studio main Build
platform:
arch: amd64
os: linux
trigger:
branch:
- main
event:
- push
clone:
depth: 50
steps:
- name: Build Label Studio MMDeploy Latest image
image: plugins/docker:20.14
environment:
DOCKER_BUILDKIT: 1
settings:
dockerfile: docker/deploy/Dockerfile
context: docker/deploy
registry: quay.io
repo: quay.io/logivations/ml_all
privileged: true
build_args:
- BUILDKIT_INLINE_CACHE=1
no_cache: true
tags:
- LS_mmdeploy_latest
- LS_mmdeploy_latest_${DRONE_COMMIT_SHA}
username:
from_secret: DOCKER_QUAY_USERNAME
password:
from_secret: DOCKER_QUAY_PASSWORD
---
#PR - precommit process
kind: pipeline
type: docker
name: PR Pre-commit check
platform:
arch: amd64
os: linux
trigger:
branch:
- main
event:
- pull_request
clone:
depth: 50
steps:
- name: Build Label Studio MMDeploy PR image
image: plugins/docker:20.14
environment:
DOCKER_BUILDKIT: 1
settings:
dockerfile: docker/deploy/Dockerfile
context: docker/deploy
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_mmdeploy_pr${DRONE_PULL_REQUEST}
- quay.io/logivations/ml_all:LS_mmdeploy_latest
tags:
- LS_mmdeploy_pr${DRONE_PULL_REQUEST}
- LS_mmdeploy_pr${DRONE_PULL_REQUEST}_${DRONE_COMMIT_SHA}
username:
from_secret: DOCKER_QUAY_USERNAME
password:
from_secret: DOCKER_QUAY_PASSWORD