matrix build is now jsonnet
This commit is contained in:
parent
453130871b
commit
eca9c4083b
42
.drone.jsonnet
Normal file
42
.drone.jsonnet
Normal file
@ -0,0 +1,42 @@
|
||||
local Pipeline(mariadb_version) = {
|
||||
kind: "pipeline",
|
||||
type: "docker",
|
||||
name: "maria-" + mariadb_version,
|
||||
steps: [
|
||||
{
|
||||
name: "build_and_publish_" + mariadb_version,
|
||||
image: "plugins/docker:linux-amd64",
|
||||
pull: "always",
|
||||
settings: {
|
||||
dockerfile: "Dockerfile",
|
||||
build_args: {
|
||||
MARIA_VERSION: mariadb_version,
|
||||
},
|
||||
registry: "docker.asperti.com",
|
||||
repo: "docker.asperti.com/paspo/mariadb-backup-slave",
|
||||
username: {
|
||||
from_secret: "docker_username",
|
||||
},
|
||||
password: {
|
||||
from_secret: "docker_password",
|
||||
},
|
||||
tags: [ "latest-" + mariadb_version, "maria-" + mariadb_version ],
|
||||
auto_tag: false,
|
||||
force_tag: true,
|
||||
daemon_off: false,
|
||||
}
|
||||
}
|
||||
],
|
||||
trigger: {
|
||||
event: ['tags'],
|
||||
}
|
||||
};
|
||||
|
||||
[
|
||||
Pipeline("10.7"),
|
||||
Pipeline("10.6"),
|
||||
Pipeline("10.5"),
|
||||
Pipeline("10.4"),
|
||||
Pipeline("10.3"),
|
||||
Pipeline("10.2"),
|
||||
]
|
178
.drone.yml
178
.drone.yml
@ -1,178 +0,0 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: maria-10.7
|
||||
|
||||
steps:
|
||||
- name: build_and_publish_10_7
|
||||
image: plugins/docker:linux-amd64
|
||||
pull: always
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
build_args:
|
||||
- MARIA_VERSION=10.7
|
||||
registry: docker.asperti.com
|
||||
repo: docker.asperti.com/paspo/mariadb-backup-slave
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
tags:
|
||||
- latest-10.7
|
||||
- maria-10.7
|
||||
auto_tag: false
|
||||
force_tag: true
|
||||
daemon_off: false
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: maria-10.6
|
||||
|
||||
steps:
|
||||
- name: build_and_publish_10_6
|
||||
image: plugins/docker:linux-amd64
|
||||
pull: always
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
build_args:
|
||||
- MARIA_VERSION=10.6
|
||||
registry: docker.asperti.com
|
||||
repo: docker.asperti.com/paspo/mariadb-backup-slave
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
tags:
|
||||
- latest-10.6
|
||||
- maria-10.6
|
||||
auto_tag: false
|
||||
force_tag: true
|
||||
daemon_off: false
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: maria-10.5
|
||||
|
||||
steps:
|
||||
- name: build_and_publish_10_5
|
||||
image: plugins/docker:linux-amd64
|
||||
pull: always
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
build_args:
|
||||
- MARIA_VERSION=10.5
|
||||
registry: docker.asperti.com
|
||||
repo: docker.asperti.com/paspo/mariadb-backup-slave
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
tags:
|
||||
- latest-10.5
|
||||
- maria-10.5
|
||||
auto_tag: false
|
||||
force_tag: true
|
||||
daemon_off: false
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: maria-10.4
|
||||
|
||||
steps:
|
||||
- name: build_and_publish_10_4
|
||||
image: plugins/docker:linux-amd64
|
||||
pull: always
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
build_args:
|
||||
- MARIA_VERSION=10.4
|
||||
registry: docker.asperti.com
|
||||
repo: docker.asperti.com/paspo/mariadb-backup-slave
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
tags:
|
||||
- latest-10.4
|
||||
- maria-10.4
|
||||
auto_tag: false
|
||||
force_tag: true
|
||||
daemon_off: false
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: maria-10.3
|
||||
|
||||
steps:
|
||||
- name: build_and_publish_10_3
|
||||
image: plugins/docker:linux-amd64
|
||||
pull: always
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
build_args:
|
||||
- MARIA_VERSION=10.3
|
||||
registry: docker.asperti.com
|
||||
repo: docker.asperti.com/paspo/mariadb-backup-slave
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
tags:
|
||||
- latest-10.3
|
||||
- maria-10.3
|
||||
auto_tag: false
|
||||
force_tag: true
|
||||
daemon_off: false
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: maria-10.2
|
||||
|
||||
steps:
|
||||
- name: build_and_publish_10_2
|
||||
image: plugins/docker:linux-amd64
|
||||
pull: always
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
build_args:
|
||||
- MARIA_VERSION=10.2
|
||||
registry: docker.asperti.com
|
||||
repo: docker.asperti.com/paspo/mariadb-backup-slave
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
tags:
|
||||
- latest-10.2
|
||||
- maria-10.2
|
||||
auto_tag: false
|
||||
force_tag: true
|
||||
daemon_off: false
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
Loading…
Reference in New Issue
Block a user