From 17b97c319ce071288dc212a20fa6d2fb7ff2e53c Mon Sep 17 00:00:00 2001 From: TeTeHacko Date: Sun, 8 Nov 2026 00:43:30 +0100 Subject: [PATCH] =?UTF-8?q?ci:=20Flutter=203.47.9=20v=20CI=20obrazu=20(cir?= =?UTF-8?q?ruslabs=20skon=C4=8Dil=20na=203.44.0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream od 6. 11. pinuje environment.flutter na 3.47.9 a pub get jinou verzi odmítne; cirruslabs/flutter vyšel naposledy jako 3.44.0 (květen). Základ zůstává kvůli Android SDK a Javě, SDK Flutteru se nahradí oficiálním tarballem připnutým sha256. Obraz 4,5 -> 7,5 GB. Co-Authored-By: Claude Opus 5.5 --- .gitea/ci/Dockerfile | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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.