forked from drone-plugins/drone-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
53 lines (48 loc) · 1.2 KB
/
.drone.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
workspace:
base: /go
path: src/github.com/drone-plugins/drone-docker
pipeline:
build:
image: golang:1.9
commands:
- go get -u github.com/golang/dep/cmd/dep
- dep ensure
- go vet ./...
- go test -cover ./...
- sh .drone.sh
publish:
image: plugins/docker
repo: plugins/docker
tags: [ "latest", "17", "17.12" ]
secrets: [ docker_username, docker_password ]
dockerfile: docker/Dockerfile
when:
branch: master
event: push
publish_heroku:
image: plugins/docker
repo: plugins/heroku
tags: [ "latest", "17", "17.12" ]
secrets: [ docker_username, docker_password ]
dockerfile: docker/heroku/Dockerfile
when:
branch: master
event: push
publish_gcr:
image: plugins/docker
repo: plugins/gcr
tags: [ "latest", "17", "17.10" ]
secrets: [ docker_username, docker_password ]
dockerfile: docker/gcr/Dockerfile
when:
branch: master
event: push
publish_ecr:
image: plugins/docker
repo: plugins/ecr
tags: [ "latest", "17", "17.10" ]
secrets: [ docker_username, docker_password ]
dockerfile: docker/ecr/Dockerfile
when:
branch: master
event: push