aptly: set up to work with any release's GnuPG config
https://github.com/aptly-dev/aptly/issues/657 https://github.com/aptly-dev/aptly/issues/699
This commit is contained in:
parent
3f6983651a
commit
efb5121a4b
|
|
@ -22,17 +22,18 @@ JOB_URL="$CI_PROJECT_URL/-/jobs/$CI_JOB_ID"
|
|||
COMMIT_URL="$CI_PROJECT_URL/commit/$CI_COMMIT_SHA"
|
||||
BRANCH_URL="$CI_PROJECT_URL/commits/$CI_COMMIT_REF_NAME"
|
||||
|
||||
depends="aptly gnupg"
|
||||
depends="aptly gnupg1"
|
||||
$apt_get update
|
||||
$apt_get install --no-install-recommends $depends
|
||||
apt-mark auto $depends
|
||||
|
||||
# build apt repo from freshly built .debs
|
||||
aptly repo create autobuilt || true
|
||||
aptly repo add autobuilt ../*.deb
|
||||
aptly="aptly -gpg-provider=internal"
|
||||
$aptly repo create autobuilt || true
|
||||
$aptly repo add autobuilt ../*.deb
|
||||
DEB_BUILD_ARCH=`dpkg --print-architecture`
|
||||
aptly publish repo --skip-signing --distribution autobuilt --architectures all,$DEB_BUILD_ARCH autobuilt \
|
||||
|| aptly publish update --skip-signing --architectures all,$DEB_BUILD_ARCH autobuilt
|
||||
$aptly publish repo --skip-signing --distribution autobuilt --architectures all,$DEB_BUILD_ARCH autobuilt \
|
||||
|| $aptly publish update --skip-signing --architectures all,$DEB_BUILD_ARCH autobuilt
|
||||
|
||||
rm -rf public
|
||||
cp -a ~/.aptly/public public
|
||||
|
|
|
|||
Loading…
Reference in New Issue