-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwercker.yml
More file actions
49 lines (39 loc) · 966 Bytes
/
wercker.yml
File metadata and controls
49 lines (39 loc) · 966 Bytes
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
box: golang
services:
- mongo
build:
steps:
- setup-go-workspace
- script:
name: go get
code: |
cd $WERCKER_SOURCE_DIR
go version
go get -u github.com/Masterminds/glide
go get -u github.com/cloudnativego/cf-tools/vcapinate
export PATH=$WERCKER_SOURCE_DIR/bin:$PATH
glide install
# Build the project
- script:
name: go build
code: |
go build
# Test the project
- script:
name: go test
code: |
go test -v ./service
- script:
name: copy files to wercker output
code: |
cp -R ./ ${WERCKER_OUTPUT_DIR}
deploy:
steps:
- internal/docker-push:
username: $USERNAME
password: $PASSWORD
cmd: /pipeline/source/drones-query
port: "8080"
tag: latest
repository: cloudnativego/drones-query
registry: https://registry.hub.docker.com