matrix build is now jsonnet

This commit is contained in:
2022-01-13 11:54:20 +01:00
parent 453130871b
commit eca9c4083b
2 changed files with 42 additions and 178 deletions

42
.drone.jsonnet Normal file
View 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"),
]