This repository has been archived by the owner on Dec 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
.drone.yml
72 lines (66 loc) · 2.3 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: docker image build
steps:
- name: unit-tests
image: cortezaproject/corteza-server-builder:latest
pull: always
environment:
CGO_ENABLED: 0
GOOS: linux
GOARCH: amd64
commands:
# no special unit tests, just test-build all binaries
- go build cmd/monolith/main.go
- go build cmd/compose/main.go
- go build cmd/system/main.go
- go build cmd/messaging/main.go
- name: crust-server
image: plugins/docker
depends_on: [ 'unit-tests' ]
settings:
repo: crusttech/crust-server
auto_tag: true # generate tag names automatically based on git branch and git tag
dockerfile: Dockerfile.crust-server
username: { from_secret: docker_hub_username }
password: { from_secret: docker_hub_password }
- name: crust-server-system
image: plugins/docker
depends_on: [ 'unit-tests' ]
settings:
repo: crusttech/crust-server-system
auto_tag: true # generate tag names automatically based on git branch and git tag
dockerfile: Dockerfile.crust-server-system
username: { from_secret: docker_hub_username }
password: { from_secret: docker_hub_password }
when:
ref: { include: [ "refs/tags/20??.*.*", "refs/heads/master" ] }
event: [ "push", "tag" ]
- name: crust-server-compose
image: plugins/docker
depends_on: [ 'unit-tests' ]
settings:
repo: crusttech/crust-server-compose
auto_tag: true # generate tag names automatically based on git branch and git tag
dockerfile: Dockerfile.crust-server-compose
username: { from_secret: docker_hub_username }
password: { from_secret: docker_hub_password }
when:
ref: { include: [ "refs/tags/20??.*.*", "refs/heads/master" ] }
event: [ "push", "tag" ]
- name: crust-server-messaging
depends_on: [ 'unit-tests' ]
image: plugins/docker
settings:
repo: crusttech/crust-server-messaging
auto_tag: true # generate tag names automatically based on git branch and git tag
dockerfile: Dockerfile.crust-server-messaging
username: { from_secret: docker_hub_username }
password: { from_secret: docker_hub_password }
when:
ref: { include: [ "refs/tags/20??.*.*", "refs/heads/master" ] }
event: [ "push", "tag" ]
trigger:
event:
# Pipeline will be executed from branch event,
# this ensures we do not run duplicates.
exclude: [ "pull_request" ]