-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwercker.yml
More file actions
34 lines (28 loc) · 755 Bytes
/
wercker.yml
File metadata and controls
34 lines (28 loc) · 755 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
box: golang
build:
steps:
# Sets the go workspace and places you package
# at the right place in the workspace tree
- setup-go-workspace
# Gets the dependencies
- wercker/glide-install@2.1.1
# Build the project
- script:
name: go build
cwd: cmd/push
code: |
go build
# Copy binary to location that gets passed along to deploy
- script:
name: copy binary
cwd: cmd/push
code: cp push "$WERCKER_OUTPUT_DIR"
push-image:
box: alpine:3.5
steps:
- internal/docker-push:
username: $REGISTRY_USERNAME
password: $REGISTRY_PASSWORD
tag: $IMAGE_VERSION
repository: webup/push
registry: https://registry.hub.docker.com