-
Notifications
You must be signed in to change notification settings - Fork 15
/
wercker.yml
63 lines (53 loc) · 1.59 KB
/
wercker.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
box: golang
build-and-test:
services:
- id: quay.io/coreos/etcd
registry: https://quay.io
tag: v2.3.7
name: etcd
cmd: |
-name etcd0 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -initial-advertise-peer-urls http://0.0.0.0:2380 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-token etcd-cluster-1 -initial-cluster etcd0=http://0.0.0.0:2380 -initial-cluster-state new
steps:
- setup-go-workspace
- script:
name: make clean
code: |
make clean
- script:
name: make dependencies
code: |
make dependencies
- script:
name: make blacksmith
code: |
make blacksmith
- script:
name: make prepare_test_ws
code: |
make prepare_test_ws
- script:
name: make test
code: |
ETCD_ENDPOINT=http://${ETCD_PORT_2379_TCP_ADDR}:${ETCD_PORT_2379_TCP_PORT} make test
- script:
name: copy binary
code: cp blacksmith "$WERCKER_OUTPUT_DIR"
check-if-tagged:
steps:
- script:
name: "Check if this is a release commit"
code: |
[ `git tag -l --points-at HEAD` | grep -e "^v" ] && exit 0
exit 1
- script:
name: copy binary
code: cp blacksmith "$WERCKER_OUTPUT_DIR"
release:
steps:
- internal/docker-scratch-push:
username: $QUAY_USERNAME
password: $QUAY_PASSWORD
cmd: ./blacksmith
tag: $WERCKER_GIT_COMMIT
repository: quay.io/cafebazaar/blacksmith
registry: https://quay.io