ci: Flutter 3.47.9 v CI obrazu (cirruslabs skončil na 3.44.0)
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
8a9d9ba0b7
commit
17b97c319c
1 file changed
+21
-1
+21
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user