oxen-mq/.drone.jsonnet

36 lines
1.6 KiB
Text
Raw Normal View History

2020-09-22 05:07:57 +02:00
local distro = "sid";
local apt_get_quiet = 'apt-get -o=Dpkg::Use-Pty=0 -q';
local deb_pipeline(name, image, buildarch='amd64', debarch='amd64') = {
kind: 'pipeline',
type: 'docker',
name: name,
2020-09-22 05:07:57 +02:00
platform: { arch: buildarch },
steps: [
{
name: 'build',
image: image,
2020-09-22 05:07:57 +02:00
environment: { SSH_KEY: { from_secret: "SSH_KEY" } },
commands: [
2020-09-22 05:07:57 +02:00
'echo "man-db man-db/auto-update boolean false" | debconf-set-selections',
apt_get_quiet + ' update',
apt_get_quiet + ' install -y eatmydata',
'eatmydata ' + apt_get_quiet + ' dist-upgrade -y',
'eatmydata ' + apt_get_quiet + ' install -y git-buildpackage devscripts g++ ccache openssh-client',
'eatmydata dpkg-reconfigure ccache',
'cd debian && eatmydata mk-build-deps -i -r --tool="' + apt_get_quiet + ' -o Debug::pkgProblemResolver=yes --no-install-recommends -y" control && cd ..',
'eatmydata gbp buildpackage --git-no-pbuilder --git-builder=\'debuild --prepend-path=/usr/lib/ccache --preserve-envvar=CCACHE_*\' --git-upstream-tag=HEAD -us -uc',
'./debian/ci-upload.sh ' + distro + ' ' + debarch,
],
}
]
};
[
2020-09-22 05:07:57 +02:00
deb_pipeline("Debian sid (amd64)", "debian:sid"),
deb_pipeline("Debian sid (i386)", "i386/debian:sid", buildarch='amd64', debarch='i386'),
deb_pipeline("Debian sid (arm64)", "arm64v8/debian:sid", buildarch='arm64', debarch="arm64"),
deb_pipeline("Debian sid (armhf)", "arm32v7/debian:sid", buildarch='arm64', debarch="armhf"),
]