forked from ovdmar/vmck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
60 lines (52 loc) · 885 Bytes
/
.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
kind: pipeline
name: test
steps:
- name: flake8
image: alpine/flake8:3.7.7
commands:
- flake8
---
kind: pipeline
name: publish
trigger:
status:
- success
event:
- push
- tag
depends_on:
- test
steps:
- name: docker push branch ${DRONE_COMMIT_BRANCH}
image: plugins/docker
settings:
repo: vmck/vmck
tags: ${DRONE_COMMIT_BRANCH}
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- push
- name: docker push autotag + latest
image: plugins/docker
settings:
repo: vmck/vmck
auto_tag: true
username:
from_secret: docker_username
password:
from_secret: docker_password
---
kind: secret
name: docker_username
get:
path: liquid/ci/drone.docker
name: username
---
kind: secret
name: docker_password
get:
path: liquid/ci/drone.docker
name: password