support for multiple mariadb versions
continuous-integration/drone/push Build encountered an error Details
continuous-integration/drone/tag Build encountered an error Details

This commit is contained in:
Paolo Asperti 2019-11-25 14:28:34 +01:00
parent b0ea3d6fe6
commit e166a834a2
Signed by: paspo
GPG Key ID: 06D46905D19D5182
3 changed files with 50 additions and 4 deletions

View File

@ -10,8 +10,6 @@ steps:
daemon_off: false
dry_run: true
repo: docker.asperti.com/paspo/mariadb-backup-slave
tags:
- latest
when:
event:
exclude:
@ -20,6 +18,52 @@ steps:
- name: build_and_publish
image: plugins/docker:linux-amd64
pull: always
environment:
MARIA_VERSION: 10.1
settings:
dockerfile: Dockerfile
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:
- ${MARIA_VERSION}
username:
from_secret: docker_username
when:
event:
- tag
- name: build_and_publish
image: plugins/docker:linux-amd64
pull: always
environment:
MARIA_VERSION: 10.2
settings:
dockerfile: Dockerfile
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:
- ${MARIA_VERSION}
username:
from_secret: docker_username
when:
event:
- tag
- name: build_and_publish
image: plugins/docker:linux-amd64
pull: always
environment:
MARIA_VERSION: 10.3
settings:
dockerfile: Dockerfile
auto_tag: true
@ -31,6 +75,7 @@ steps:
repo: docker.asperti.com/paspo/mariadb-backup-slave
tags:
- latest
- ${MARIA_VERSION}
username:
from_secret: docker_username
when:

View File

@ -1,4 +1,5 @@
FROM mariadb:10
ARG MARIA_VERSION=10.3
FROM mariadb:${MARIA_VERSION}
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y cron sudo automysqlbackup

View File

@ -2,4 +2,4 @@
log_bin
log-bin = binlog
max-binlog-size = 500M
log-basename=backup-slave