buld step for master and other branches

This commit is contained in:
Umputun
2018-02-11 02:23:39 -06:00
parent 60f00b93c9
commit c6c9f8c489
+14 -1
View File
@@ -10,12 +10,25 @@ pipeline:
- cd app
- go build -v ./...
docker:
docker-master:
image: plugins/docker
repo: umputun/remark
secrets: [ docker_username, docker_password ]
tags:
- ${DRONE_COMMIT_BRANCH/\//-}
- latest
when:
branch: [master, release/*]
docker-branch:
image: plugins/docker
repo: umputun/remark
secrets: [ docker_username, docker_password ]
tags:
- ${DRONE_COMMIT_BRANCH/\//-}
when:
branch:
exclude: [master, release/*]
deploy:
image: appleboy/drone-ssh