Mauro Torrez be8a18f03b
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
add build args for tags
2019-10-01 00:13:03 -03:00

56 lines
913 B
YAML

---
kind: pipeline
name: default
steps:
- name: build and publish image
image: plugins/docker
settings:
repo: eumau/roundcubemail
auto_tag: true
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
when:
branch:
- master
---
kind: pipeline
name: pull_request
steps:
- name: build image only
image: plugins/docker
settings:
repo: eumau/roundcubemail
auto_tag: true
dry_run: true
trigger:
event:
- pull_request
---
kind: pipeline
name: tags
steps:
- name: docker
image: plugins/docker
settings:
repo: eumau/roundcubemail
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
tags:
- ${DRONE_TAG}
build_args:
- ROUNDCUBEMAIL_VERSION=${DRONE_TAG}
trigger:
event:
- tag