docker-mariadb-backup-slave/.drone.yml

105 lines
2.3 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: 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.3
username:
from_secret: docker_username
when:
event:
- tag
- name: build_and_publish_10_4
image: plugins/docker:linux-amd64
pull: always
settings:
dockerfile: Dockerfile
build_args:
- MARIA_VERSION=10.4
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.4
username:
from_secret: docker_username
when:
event:
- tag