From 4dbe0b71e6293211476aea2d2c9d44591fa2fe5a Mon Sep 17 00:00:00 2001 From: Armand <4831c0@proton.me> Date: Thu, 3 Sep 2026 17:23:23 +0200 Subject: [PATCH] fix(ci): persist PUB_CACHE across woodpecker steps Each step runs in a fresh container from the builder image, so the default /root/.pub-cache doesn't survive from `flutter pub get` into the codegen/build steps. Point PUB_CACHE at a workspace-local path instead, which is shared across steps. --- .woodpecker.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 128f6f27..c861f27b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -19,20 +19,27 @@ steps: - echo "$UPLOAD_KEYSTORE_B64" | base64 -d > secrets/upload-keystore.jks - echo "$KEYSTORE_PROPERTIES_B64" | base64 -d > secrets/keystore.properties + # Each step runs in a fresh container from the builder image -- only the + # workspace volume is shared between them. Pointing PUB_CACHE at a + # workspace-local dir (instead of the image's default /root/.pub-cache) + # is what lets `flutter pub get`'s downloads survive into later steps. - name: dependencies image: git.firka.app/firka/firka-builder:latest commands: + - export PUB_CACHE="$CI_WORKSPACE/.pub-cache" - cd firka - flutter pub get - name: codegen image: git.firka.app/firka/firka-builder:latest commands: + - export PUB_CACHE="$CI_WORKSPACE/.pub-cache" - cd firka - dart run scripts/codegen.dart - name: build image: git.firka.app/firka/firka-builder:latest commands: + - export PUB_CACHE="$CI_WORKSPACE/.pub-cache" - cd firka - flutter build apk --release