You've already forked docker-armbian-build
mirror of
https://github.com/armbian/docker-armbian-build.git
synced 2026-01-06 10:38:10 -08:00
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:
22
.github/workflows/build-docker-images.yml
vendored
22
.github/workflows/build-docker-images.yml
vendored
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user