docker-deb-builder/.drone.jsonnet

47 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-02-17 14:08:50 +00:00
local Pipeline(os, release) = {
kind: "pipeline",
type: "docker",
name: os + "-" + release,
steps: [
{
name: "build_and_publish_" + os + "_" + release,
image: "plugins/docker:linux-amd64",
pull: "always",
settings: {
dockerfile: "Dockerfile",
2022-02-17 14:42:14 +00:00
build_args: [
"BUILD_FROM=" + os + ":" + release,
],
2022-02-17 14:08:50 +00:00
registry: "docker.asperti.com",
repo: "docker.asperti.com/paspo/docker-deb-builder",
username: {
from_secret: "docker_username",
},
password: {
from_secret: "docker_password",
},
tags: [ os + "_" + release ],
auto_tag: false,
force_tag: true,
daemon_off: false,
2023-02-01 13:40:13 +00:00
},
when: {
event: {
include: [
"tag",
"cron"
],
},
2022-02-17 14:08:50 +00:00
}
2023-02-01 13:40:13 +00:00
}
]
2022-02-17 14:08:50 +00:00
};
[
Pipeline("debian", "bullseye"),
Pipeline("debian", "buster"),
2023-02-01 13:26:38 +00:00
Pipeline("ubuntu", "22.04"),
2022-02-17 14:08:50 +00:00
Pipeline("ubuntu", "20.04"),
Pipeline("ubuntu", "18.04"),
]