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.
This commit is contained in:
Igor
2025-12-28 20:27:18 +01:00
committed by GitHub
parent 98934fb7ab
commit 7983b85796

View File

@@ -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 \