enable gcr and heroku plugins

This commit is contained in:
Brad Rydzewski
2017-08-27 12:27:28 -07:00
parent 7636c99bb6
commit 3e321f1904
23 changed files with 195 additions and 101 deletions

View File

@@ -3,21 +3,36 @@ workspace:
path: src/github.com/drone-plugins/drone-docker
pipeline:
test:
image: golang:1.6
environment:
- CGO_ENABLED=0
commands:
# Disabled: main.go:99: cli.StringSlice composite literal uses unkeyed fields
# - go vet
- go test -cover -coverprofile=coverage.out
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a -tags netgo
build:
image: golang:1.9
commands: sh .drone.sh
publish:
image: plugins/docker
repo: plugins/docker
tags: [ "latest", "17", "17.05" ]
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.05" ]
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.05" ]
secrets: [ docker_username, docker_password ]
dockerfile: docker/gcr/Dockerfile
when:
branch: master
event: push