update deb repo signature filename

This commit is contained in:
Jason Rhinelander 2021-10-19 16:35:06 -03:00
parent 806ac24127
commit e1d45f247d
2 changed files with 36 additions and 36 deletions

View File

@ -1,50 +1,50 @@
local distro = "bullseye"; local distro = 'bullseye';
local distro_name = 'Debian bullseye'; local distro_name = 'Debian bullseye';
local distro_docker = 'debian:bullseye'; local distro_docker = 'debian:bullseye';
local apt_get_quiet = 'apt-get -o=Dpkg::Use-Pty=0 -q'; local apt_get_quiet = 'apt-get -o=Dpkg::Use-Pty=0 -q';
local repo_suffix = '/staging'; // can be /beta or /staging for non-primary repo deps local repo_suffix = '/staging'; // can be /beta or /staging for non-primary repo deps
local submodules = { local submodules = {
name: 'submodules', name: 'submodules',
image: 'drone/git', image: 'drone/git',
commands: ['git fetch --tags', 'git submodule update --init --recursive --depth=1'] commands: ['git fetch --tags', 'git submodule update --init --recursive --depth=1'],
}; };
local deb_pipeline(image, buildarch='amd64', debarch='amd64', jobs=6) = { local deb_pipeline(image, buildarch='amd64', debarch='amd64', jobs=6) = {
kind: 'pipeline', kind: 'pipeline',
type: 'docker', type: 'docker',
name: distro_name + ' (' + debarch + ')', name: distro_name + ' (' + debarch + ')',
platform: { arch: buildarch }, platform: { arch: buildarch },
steps: [ steps: [
submodules, submodules,
{ {
name: 'build', name: 'build',
image: image, image: image,
environment: { SSH_KEY: { from_secret: "SSH_KEY" } }, environment: { SSH_KEY: { from_secret: 'SSH_KEY' } },
commands: [ commands: [
'echo "Building on ${DRONE_STAGE_MACHINE}"', 'echo "Building on ${DRONE_STAGE_MACHINE}"',
'echo "man-db man-db/auto-update boolean false" | debconf-set-selections', 'echo "man-db man-db/auto-update boolean false" | debconf-set-selections',
'echo deb http://deb.loki.network' + repo_suffix + ' ' + distro + ' main >/etc/apt/sources.list.d/loki.list', 'echo deb http://deb.oxen.io' + repo_suffix + ' ' + distro + ' main >/etc/apt/sources.list.d/oxen.list',
'cp debian/deb.loki.network.gpg /etc/apt/trusted.gpg.d', 'cp contrib/deb.oxen.io.gpg /etc/apt/trusted.gpg.d',
apt_get_quiet + ' update', apt_get_quiet + ' update',
apt_get_quiet + ' install -y eatmydata', apt_get_quiet + ' install -y eatmydata',
'eatmydata ' + apt_get_quiet + ' dist-upgrade -y', 'eatmydata ' + apt_get_quiet + ' dist-upgrade -y',
'eatmydata ' + apt_get_quiet + ' install --no-install-recommends -y git-buildpackage devscripts equivs ccache openssh-client', 'eatmydata ' + apt_get_quiet + ' install --no-install-recommends -y git-buildpackage devscripts equivs ccache openssh-client',
'cd debian', 'cd debian',
'eatmydata mk-build-deps -i -r --tool="' + apt_get_quiet + ' -o Debug::pkgProblemResolver=yes --no-install-recommends -y" control', 'eatmydata mk-build-deps -i -r --tool="' + apt_get_quiet + ' -o Debug::pkgProblemResolver=yes --no-install-recommends -y" control',
'cd ..', 'cd ..',
'eatmydata gbp buildpackage --git-no-pbuilder --git-builder=\'debuild --preserve-envvar=CCACHE_*\' --git-upstream-tag=HEAD -us -uc -j' + jobs, "eatmydata gbp buildpackage --git-no-pbuilder --git-builder='debuild --preserve-envvar=CCACHE_*' --git-upstream-tag=HEAD -us -uc -j" + jobs,
'./debian/ci-upload.sh ' + distro + ' ' + debarch, './debian/ci-upload.sh ' + distro + ' ' + debarch,
], ],
} },
] ],
}; };
[ [
deb_pipeline(distro_docker), deb_pipeline(distro_docker),
deb_pipeline("i386/" + distro_docker, buildarch='amd64', debarch='i386'), deb_pipeline('i386/' + distro_docker, buildarch='amd64', debarch='i386'),
deb_pipeline("arm64v8/" + distro_docker, buildarch='arm64', debarch="arm64", jobs=4), deb_pipeline('arm64v8/' + distro_docker, buildarch='arm64', debarch='arm64', jobs=4),
deb_pipeline("arm32v7/" + distro_docker, buildarch='arm64', debarch="armhf", jobs=4), deb_pipeline('arm32v7/' + distro_docker, buildarch='arm64', debarch='armhf', jobs=4),
] ]

Binary file not shown.