docker-mariadb-backup-slave/.drone.yml
Paolo Asperti fc7b026b0a
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
fix docker build args
2019-11-25 15:22:37 +01:00

84 lines
1.8 KiB
YAML

kind: pipeline
name: default
steps:
- name: build
image: plugins/docker:linux-amd64
pull: always
settings:
dockerfile: Dockerfile
daemon_off: false
dry_run: true
repo: docker.asperti.com/paspo/mariadb-backup-slave
when:
event:
exclude:
- tag
- name: build_and_publish_10_1
image: plugins/docker:linux-amd64
pull: always
settings:
dockerfile: Dockerfile
build_args:
- MARIA_VERSION=10.1
auto_tag: false
force_tag: true
daemon_off: false
password:
from_secret: docker_password
registry: docker.asperti.com
repo: docker.asperti.com/paspo/mariadb-backup-slave
tags:
- maria-10.1
username:
from_secret: docker_username
when:
event:
- tag
- name: build_and_publish_10_2
image: plugins/docker:linux-amd64
pull: always
settings:
dockerfile: Dockerfile
build_args:
- MARIA_VERSION=10.2
auto_tag: false
force_tag: true
daemon_off: false
password:
from_secret: docker_password
registry: docker.asperti.com
repo: docker.asperti.com/paspo/mariadb-backup-slave
tags:
- maria-10.2
username:
from_secret: docker_username
when:
event:
- tag
- name: build_and_publish_10_3
image: plugins/docker:linux-amd64
pull: always
settings:
dockerfile: Dockerfile
build_args:
- MARIA_VERSION=10.3
auto_tag: true
force_tag: true
daemon_off: false
password:
from_secret: docker_password
registry: docker.asperti.com
repo: docker.asperti.com/paspo/mariadb-backup-slave
tags:
- latest
- maria-10.3
username:
from_secret: docker_username
when:
event:
- tag