ci+dockerfile: cache-bust ARG so every build pulls fresh FEX + rootfs
build-image.yml (push) Invalid workflow file
build-image.yml (push) Invalid workflow file
This commit is contained in:
1 parent
401f91fb12
commit
850efbc564
2 files changed
+4
-2
No files matched your search
@@ -15,10 +15,10 @@ jobs:
|
||||
run: |
|
||||
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: |
|
||||
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:$(date +%Y%m%d) .
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ RUN --mount=target=/build,source=build /build/install-packages
|
||||
|
||||
ARG EMULATOR=fex
|
||||
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
|
||||
|
||||
EXPOSE 19132/tcp
|
||||
|
||||
Reference in new issue
Block a user