diff --git a/.gitea/ci/Dockerfile b/.gitea/ci/Dockerfile index a5e306e6..16132aa2 100644 --- a/.gitea/ci/Dockerfile +++ b/.gitea/ci/Dockerfile @@ -12,13 +12,33 @@ # # Built by the `ci-image` job, tagged by a hash of this file, into the local # Docker of the `big` runner; a Renovate bump of either base digest rebuilds -# it (seconds - only node is added on top of the Flutter image). +# it (a minute or two - node and the Flutter SDK are added on top). FROM node:26-trixie-slim@sha256:5adad64f9a1fca2d51972caa65983634c8a774eb300d72b20f7f2a0f60368072 AS node FROM ghcr.io/cirruslabs/flutter:stable@sha256:46691e311715845de03a3ba4753a475476936805b29431b1f00f1816981033f8 COPY --from=node /usr/local/bin/node /usr/local/bin/node +# cirruslabs stopped publishing at Flutter 3.44.0 (May 2026), while upstream +# pins `environment.flutter` in pubspec.yaml (3.47.9 since 2026-11-06) and +# `pub get` refuses any other SDK. Keep their image for the Android SDK and +# Java, and swap the Flutter SDK for the official release tarball. Bump +# together with pubspec.yaml; the hash is in Google's +# releases/releases_linux.json. +ARG FLUTTER_VERSION=3.47.9 +ARG FLUTTER_SHA256=25ed8c3c29d51a7353f2a944310b478af8214920639524b19c50a19e6c044c5a +RUN curl -fsSL -o /tmp/flutter.tar.xz \ + "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_${FLUTTER_VERSION}-stable.tar.xz" \ + && echo "${FLUTTER_SHA256} /tmp/flutter.tar.xz" | sha256sum -c - \ + && rm -rf "$FLUTTER_HOME" \ + && mkdir -p "$FLUTTER_HOME" \ + && tar -xJf /tmp/flutter.tar.xz -C "$FLUTTER_HOME" --strip-components=1 \ + && rm /tmp/flutter.tar.xz \ + && git config --global --add safe.directory "$FLUTTER_HOME" \ + && flutter --disable-analytics \ + && flutter precache --android --no-ios --no-web --no-linux --no-windows --no-macos --no-fuchsia \ + && flutter --version | grep -q "Flutter ${FLUTTER_VERSION} " + # Fixed cache paths: the build job restores/saves exactly these (HOME inside # a job container is not reliably /root, and Gradle takes its home from # passwd, not $HOME). Gradle's build cache lives in there too.