Skip to content

Commit

Permalink
Build image only when tag event happen
Browse files Browse the repository at this point in the history
  • Loading branch information
jefmoura committed Jun 22, 2018
1 parent 68a1861 commit c196229
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,16 @@ pipeline:
when:
event: [push, tag]

build-docker-image:
build-docker-image-tag:
image: plugins/docker
insecure: true
registry: registry.tola.io
repo: registry.tola.io/toladata/tolatables
file: Dockerfile
tags:
- ${DRONE_COMMIT_SHA}
auto_tag: true
secrets: [DOCKER_USERNAME, DOCKER_PASSWORD]
when:
event: [push, tag]
branch: [master, demo, staging, dev-v2]
event: [tag]
status: [success]

notify:
Expand Down

0 comments on commit c196229

Please sign in to comment.