force workflow to pull fresh image

This commit is contained in:
2025-10-16 18:51:32 -05:00
committed by Jason Ross
parent 5fd9373dc8
commit 994dea669f
2 changed files with 18 additions and 3 deletions
+1
View File
@@ -218,6 +218,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/jmr-dev/android-file-handler-arch-builder:latest image: ghcr.io/jmr-dev/android-file-handler-arch-builder:latest
options: --pull always
credentials: credentials:
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
+17 -3
View File
@@ -13,14 +13,16 @@ FROM archlinux:latest
ARG FPM_VERSION=1.16.0 ARG FPM_VERSION=1.16.0
# Install system dependencies (Arch) including Python build dependencies # Install system dependencies (Arch) including Python build dependencies
RUN pacman -Syu --noconfirm && \ RUN pacman -Syu --noconfirm \
pacman -S --noconfirm \
ruby \ ruby \
ruby-bundler \
ruby-rake \
base-devel \ base-devel \
curl \ curl \
git \ git \
tar \ tar \
ca-certificates \ ca-certificates \
ca-certificates-utils \
tk \ tk \
tcl \ tcl \
libx11 \ libx11 \
@@ -38,13 +40,25 @@ RUN pacman -Syu --noconfirm && \
wget \ wget \
xz \ xz \
patch && \ patch && \
update-ca-trust && \
pacman -Scc --noconfirm pacman -Scc --noconfirm
# Install erb gem (required for fpm on Arch) # Install erb gem (required for fpm on Arch)
RUN gem install --no-document erb RUN gem install --no-document erb
# Install fpm system-wide and pin version so fpm will be in /usr/bin # Install fpm system-wide and pin version so fpm will be in /usr/bin
RUN gem install --no-document -v "${FPM_VERSION}" fpm --bindir /usr/bin # Install fpm and print diagnostic info
RUN set -euxo pipefail && \
echo "Ruby version:" && ruby -v && \
echo "Gem environment:" && gem env && \
echo "Attempting gem install fpm ${FPM_VERSION}" && \
gem install -V --no-document -v "${FPM_VERSION}" fpm || { echo "Gem install failed"; exit 1; } && \
echo "Gem bin dir: $(ruby -e 'puts Gem.bindir')" && \
ls -l "$(ruby -e 'puts Gem.bindir')" || true && \
cp -v "$(ruby -e 'puts Gem.bindir')"/* /usr/bin/ || true && \
fpm --version || echo "fpm missing"
# Install pyenv # Install pyenv
ENV PYENV_ROOT="/root/.pyenv" ENV PYENV_ROOT="/root/.pyenv"