Update packages on builder before building release (#2729)

* ci(yay): update packages on builder before building release

* attempt to reduce builder size and force update before release build

* use alternative image

* use alternative image
This commit is contained in:
Jo
2025-12-13 16:42:40 +01:00
committed by GitHub
parent f5e5b51f3f
commit b526f87e99
2 changed files with 13 additions and 8 deletions

View File

@@ -7,6 +7,8 @@ ARG ARCH
WORKDIR /app
RUN pacman -Syyu --overwrite=* --noconfirm
COPY . .
RUN make release VERSION=${VERSION} PREFIX=${PREFIX} ARCH=${ARCH}

View File

@@ -1,15 +1,18 @@
FROM docker.io/ljmf00/archlinux:devel
FROM docker.io/gmanka/archlinuxarm:base-devel
LABEL maintainer="Jguer,docker@jguer.space"
ENV GO111MODULE=on
WORKDIR /app
RUN sed -i '/^\[community\]/,/^\[/ s/^/#/' /etc/pacman.conf
COPY go.mod .
RUN pacman-key --init && pacman -Sy && pacman -S --overwrite=* --noconfirm archlinux-keyring && \
pacman -Su --overwrite=* --needed --noconfirm pacman doxygen meson asciidoc go git gcc make sudo base-devel && \
rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* && \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v2.4.0 && \
go mod download
ARG EXTRA_PKGS=""
RUN set -eux; \
pacman-key --init; \
pacman -Syu --noconfirm --needed archlinux-keyring pacman go git gcc make base-devel sudo; \
if [ -n "${EXTRA_PKGS}" ]; then pacman -S --noconfirm --needed ${EXTRA_PKGS}; fi; \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v2.4.0; \
go mod download; \
rm -rf /var/lib/pacman/sync/* /var/cache/pacman/* /tmp/* /var/tmp/*; \
rm -rf /usr/share/man/* /usr/share/doc/* || true; \
yes | pacman -Scc >/dev/null 2>&1 || true