/
.lb.yml
56 lines (53 loc) · 1.38 KB
/
.lb.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
workspace:
path: /data
services:
- name: etcd
image: quay.io/coreos/etcd:latest
command: "/usr/local/bin/etcd --data-dir=/etcd-data --name node --initial-advertise-peer-urls
http://127.0.0.1:2380 --listen-peer-urls http://127.0.0.1:2380 --advertise-client-urls
http://127.0.0.1:2379 --listen-client-urls http://127.0.0.1:2379 --initial-cluster
node=http://127.0.0.1:2380"
steps:
- name: test
image: golang:stretch
commands:
- apt-get -y install openssl
- mkdir -p ${GOPATH}/src/github.com/lastbackend/lastbackend
- cp -r /data/. ${GOPATH}/src/github.com/lastbackend/lastbackend
- cd ${GOPATH}/src/github.com/lastbackend/lastbackend
- make deps
- make test
when:
event: [push, pull_request, tag]
registry:
- name: lastbackend
settings:
auto_tag: true
dockerfile: "./images/lastbackend/Dockerfile"
when:
event:
- push
- tag
- name: discovery
settings:
auto_tag: true
dockerfile: "./images/discovery/Dockerfile"
when:
event:
- push
- tag
- name: ingress
settings:
auto_tag: true
dockerfile: "./images/ingress/Dockerfile"
when:
event:
- push
- tag
- name: exporter
settings:
auto_tag: true
dockerfile: "./images/exporter/Dockerfile"
when:
event:
- push