forked from NatLibFi/Annif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
65 lines (59 loc) · 1.23 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
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:
branch:
- master
event:
- tag