support for multiple mariadb versions
This commit is contained in:
parent
b0ea3d6fe6
commit
e166a834a2
49
.drone.yml
49
.drone.yml
@ -10,8 +10,6 @@ steps:
|
|||||||
daemon_off: false
|
daemon_off: false
|
||||||
dry_run: true
|
dry_run: true
|
||||||
repo: docker.asperti.com/paspo/mariadb-backup-slave
|
repo: docker.asperti.com/paspo/mariadb-backup-slave
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
exclude:
|
exclude:
|
||||||
@ -20,6 +18,52 @@ steps:
|
|||||||
- name: build_and_publish
|
- name: build_and_publish
|
||||||
image: plugins/docker:linux-amd64
|
image: plugins/docker:linux-amd64
|
||||||
pull: always
|
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:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
@ -31,6 +75,7 @@ steps:
|
|||||||
repo: docker.asperti.com/paspo/mariadb-backup-slave
|
repo: docker.asperti.com/paspo/mariadb-backup-slave
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
|
- ${MARIA_VERSION}
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
when:
|
when:
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
FROM mariadb:10
|
ARG MARIA_VERSION=10.3
|
||||||
|
FROM mariadb:${MARIA_VERSION}
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -q -y cron sudo automysqlbackup
|
DEBIAN_FRONTEND=noninteractive apt-get install -q -y cron sudo automysqlbackup
|
||||||
|
Loading…
Reference in New Issue
Block a user