forked from NatLibFi/Annif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
72 lines (65 loc) · 1.5 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
kind: pipeline
name: default
globals:
- &docker_settings
username:
from_secret: docker_username
password:
from_secret: docker_password
registry: quay.io
repo: quay.io/natlibfi/annif
steps:
- name: dry_run_build
image: plugins/docker
settings:
<<: *docker_settings
tags: [dry-run-built]
cache_from:
- quay.io/natlibfi/annif:builder
- quay.io/natlibfi/annif:latest
dry_run: true
when:
event:
- pull_request
- name: build_and_publish_builder
image: plugins/docker
settings:
<<: *docker_settings
tags: [builder]
cache_from:
- quay.io/natlibfi/annif:builder
target: builder
when:
branch:
- master
event:
- push
- name: build_and_publish
image: plugins/docker
settings:
<<: *docker_settings
tags: [latest]
cache_from:
- quay.io/natlibfi/annif:builder
- quay.io/natlibfi/annif:latest
when:
branch:
- master
event:
- push
- name: build_publish_and_tag_with_release_version
image: plugins/docker
settings:
<<: *docker_settings
auto_tag: true
when:
event:
- tag
---
kind: secret
name: docker_username
data: oheObzdd1LO5wRaJ3s4KjTWv28czYEykUEff28/wnElY3+2yeBCNa4QnY+4g8iUtv+ChwleiPoDoeQ==
---
kind: secret
name: docker_password
data: AVT0+HVr3/gGKoinBv2ebQBVQ59WErQw48YEEQvY+y7vfFQPjS7M8jkoiNCcPATfT1/qg3pbGl3Da0JlBqw+UxLB2y5OeF7ABrj3lpWdIE1QcPy/E/TdKc7QCGg=