-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
23 lines (23 loc) · 993 Bytes
/
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
build:
box: google/golang
steps:
- internal/docker-build:
dockerfile: Dockerfile
image-name: my-new-image # name used to refer to this image until it's pushed
buildargs: "foo=val1 bar=val2"
labels: "Label1=value1 'Three word key'=value2 Label3='Three word value'"
extrahosts: "somehost:192.168.0.1 anotherhost:192.168.0.2"
nocache: false # ensures RUN steps in Dockerfile are always run
registry-auth-config: |
{
"https://index.docker.io/v1/": {
"username": "$USERNAME",
"password": "$PASSWORD"
}
}
- internal/docker-push:
image-name: my-new-image
username: $USERNAME # Docker Hub username. When using CLI, set using "export X_USERNAME=<username>"
password: $PASSWORD # Docker Hub password. When using CLI, set using "export X_PASSWORD=<password>"
repository: docker.io/$USERNAME/docker-build-ubuntu1
tag: latest