From 7983b857969283e9f91d969cdccc9e5cfb524927 Mon Sep 17 00:00:00 2001 From: Igor Date: Sun, 28 Dec 2025 20:27:18 +0100 Subject: [PATCH] Update aptly from official repo (#11) * Update aptly to use official repository Install aptly from the official aptly repository instead of distro repositories to get the latest stable version with bug fixes and improvements. --- .github/workflows/build-docker-images.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml index 7c78b19..3c40d63 100644 --- a/.github/workflows/build-docker-images.yml +++ b/.github/workflows/build-docker-images.yml @@ -183,12 +183,22 @@ jobs: sudo \ && rm -rf /var/lib/apt/lists/* - # Install Aptly from Debian/Ubuntu repositories - # (GitHub releases require newer GLIBC than available in older base images) - RUN apt-get update && \ - apt-get install -y aptly && \ - aptly version && \ - rm -rf /var/lib/apt/lists/* + # Install Aptly from GitHub releases + RUN APTLY_VERSION="1.6.2" && \ + if [ "$(dpkg --print-architecture)" = "amd64" ]; then \ + APTLY_ARCH="amd64"; \ + elif [ "$(dpkg --print-architecture)" = "arm64" ]; then \ + APTLY_ARCH="arm64"; \ + elif [ "$(dpkg --print-architecture)" = "armhf" ]; then \ + APTLY_ARCH="arm"; \ + else \ + APTLY_ARCH="$(dpkg --print-architecture)"; \ + fi && \ + wget -q https://github.com/aptly-dev/aptly/releases/download/v${APTLY_VERSION}/aptly_${APTLY_VERSION}_linux_${APTLY_ARCH}.zip && \ + unzip -q aptly_${APTLY_VERSION}_linux_${APTLY_ARCH}.zip && \ + mv aptly_${APTLY_VERSION}_linux_${APTLY_ARCH}/aptly /usr/local/bin/ && \ + rm -f aptly_${APTLY_VERSION}_linux_${APTLY_ARCH}.zip \ + aptly version # Install appropriate keyring based on container type RUN if grep -q "debian" /etc/os-release; then \