ci+dockerfile: cache-bust ARG so every build pulls fresh FEX + rootfs
build-image.yml (push) Invalid workflow file

This commit is contained in:
Hermes committed 2026-11-09 20:54:16 +00:00
1 parent 401f91fb12
commit 850efbc564
2 files changed
+4 -2

No files matched your search

+2 -2
View File
@@ -15,10 +15,10 @@ jobs:
run: | run: |
apt-get update -qq && apt-get install -y -qq docker.io >/dev/null apt-get update -qq && apt-get install -y -qq docker.io >/dev/null
- name: Build image (fresh FEX PPA + fresh Ubuntu rootfs) - name: Build image (cache-busted: fresh FEX PPA + fresh Ubuntu rootfs)
run: | run: |
docker pull ubuntu:24.04 docker pull ubuntu:24.04
DOCKER_BUILDKIT=1 docker build --build-arg EMULATOR=fex \ DOCKER_BUILDKIT=1 docker build --build-arg EMULATOR=fex --build-arg CACHE_BUST=$(date +%s) \
-t git.niklashmotion.art/hermes/fex-bedrock-stack:latest \ -t git.niklashmotion.art/hermes/fex-bedrock-stack:latest \
-t git.niklashmotion.art/hermes/fex-bedrock-stack:$(date +%Y%m%d) . -t git.niklashmotion.art/hermes/fex-bedrock-stack:$(date +%Y%m%d) .
+2
View File
@@ -10,6 +10,8 @@ RUN --mount=target=/build,source=build /build/install-packages
ARG EMULATOR=fex ARG EMULATOR=fex
ARG BOX64_PACKAGE=box64 ARG BOX64_PACKAGE=box64
# Cache-bust: force fresh FEX PPA + rootfs download on each pipeline run
ARG CACHE_BUST=0
RUN --mount=target=/build,source=build EMULATOR=$EMULATOR BOX64_PACKAGE=$BOX64_PACKAGE /build/setup-arm64 RUN --mount=target=/build,source=build EMULATOR=$EMULATOR BOX64_PACKAGE=$BOX64_PACKAGE /build/setup-arm64
EXPOSE 19132/tcp EXPOSE 19132/tcp