add tag build

This commit is contained in:
Umputun
2018-06-07 22:59:50 -05:00
parent 2511581b7d
commit 996a34a6ba
+11 -6
View File
@@ -9,11 +9,6 @@ pipeline:
commands:
- cd app
- go build -v ./...
# - apk add --no-cache git
# - go get golang.org/x/tools/cmd/cover
# - go get github.com/mattn/goveralls
# - go test -v -covermode=count -coverprofile=coverage.out
# - /go/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
docker_master:
image: plugins/docker
@@ -21,11 +16,21 @@ pipeline:
secrets: [ docker_username, docker_password ]
tags:
- ${DRONE_COMMIT_BRANCH/\//-}
- latest
when:
branch: [master, release/*]
event: push
docker_tag:
image: plugins/docker
repo: umputun/remark
secrets: [ docker_username, docker_password ]
tags:
- ${DRONE_TAG}
- latest
when:
branch: [refs/tags/*]
event: tag
docker_branch:
image: plugins/docker
repo: umputun/remark