name: Build Docker
kind: pipeline
type: docker
steps:
- name: Only build image
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: harbor.sebclem.fr/sebclem/drone-ansible-runner
registry: harbor.sebclem.fr
tags: latest
dry_run: true
when:
target:
exclude:
- production
- name: Build and Push docker
- name: Notify
image: drillster/drone-email
host:
from_secret: mail_host
from_secret: mail_username
from_secret: mail_password
from:
from_secret: mail_from
status: [ changed, failure ]
trigger:
event:
- push
- custom
- promote
- rollback