Fix 3h timeout: use kernel overlay in buildah (fuse-overlayfs made commit crawl), fresh cache volume
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
09f250c87e
commit
2e391e962a
1 changed files with 7 additions and 2 deletions
|
|
@ -17,6 +17,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
name: Build ${{ matrix.image_name }}
|
name: Build ${{ matrix.image_name }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 280
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -40,9 +41,9 @@ jobs:
|
||||||
# buildah container instead — the same tool Bazzite itself is built with.
|
# buildah container instead — the same tool Bazzite itself is built with.
|
||||||
- name: Build and push with buildah
|
- name: Build and push with buildah
|
||||||
run: |
|
run: |
|
||||||
docker volume create kamos-buildah-cache >/dev/null 2>&1 || true
|
docker volume create kamos-buildah >/dev/null 2>&1 || true
|
||||||
tar -cf - . | docker run --rm -i --privileged \
|
tar -cf - . | docker run --rm -i --privileged \
|
||||||
-v kamos-buildah-cache:/var/lib/containers \
|
-v kamos-buildah:/var/lib/containers \
|
||||||
-e IMAGE="${IMAGE}" \
|
-e IMAGE="${IMAGE}" \
|
||||||
-e DATE_TAG="${DATE_TAG}" \
|
-e DATE_TAG="${DATE_TAG}" \
|
||||||
-e BASE_IMAGE="${{ matrix.base_image }}" \
|
-e BASE_IMAGE="${{ matrix.base_image }}" \
|
||||||
|
|
@ -51,6 +52,10 @@ jobs:
|
||||||
quay.io/buildah/stable:latest \
|
quay.io/buildah/stable:latest \
|
||||||
bash -c '
|
bash -c '
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
# Use the fast kernel overlay driver instead of fuse-overlayfs
|
||||||
|
# (we are privileged, so this works — and is ~50x faster on
|
||||||
|
# the millions of small files in the OSTree base)
|
||||||
|
sed -i "s|^mount_program|#mount_program|" /etc/containers/storage.conf || true
|
||||||
mkdir -p /src && tar -xf - -C /src && cd /src
|
mkdir -p /src && tar -xf - -C /src && cd /src
|
||||||
buildah build -f Containerfile \
|
buildah build -f Containerfile \
|
||||||
--build-arg BASE_IMAGE="$BASE_IMAGE" \
|
--build-arg BASE_IMAGE="$BASE_IMAGE" \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue