Skip to content

fix(ci): pass the release keystore to Gradle as an absolute path - #1426

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/release-signing-keystore-path
Sep 8, 2026
Merged

fix(ci): pass the release keystore to Gradle as an absolute path#1426
bmc08gt merged 1 commit into
code/cashfrom
fix/release-signing-keystore-path

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Flipcash2 Build and Deploy has failed since the AGP 9.4.0 bump (#1421). The last green release run was on 4 Sep, before that landed; run 34237943672 dies in build-release:

Execution failed for task ':apps:flipcash:app:validateSigningRelease'.
> Keystore file '/home/runner/.gradle/daemon/9.7.1/key/key' not found
  for signing config 'externalOverride'.

timheuer/base64-to-file reports a workspace-relative path, so the workflow was handing Gradle -Pandroid.injected.signing.store.file=key/key. AGP resolves that property against the Gradle daemon's working directory rather than the project directory, which is how the lookup ended up under ~/.gradle/daemon/9.7.1/.

Prefixing the value with github.workspace removes the resolution question entirely — nothing downstream has to guess a base directory, including the bundletool call that reuses STORE_FILE as ks_path.

That also lets the second decode step go. apps/flipcash/app/key/ only existed to cover module-relative resolution; no signing config or script reads it. The contributors config is unaffected — it builds its path from rootDir.

The release build has failed since the AGP 9.4.0 bump:

    Execution failed for task ':apps:flipcash:app:validateSigningRelease'.
    > Keystore file '/home/runner/.gradle/daemon/9.7.1/key/key' not found
      for signing config 'externalOverride'.

`base64-to-file` reports a workspace-relative `key/key`, which the workflow
passed straight through as `android.injected.signing.store.file`. AGP resolves
that property against the Gradle daemon's working directory rather than the
project, so it looked for the keystore under `~/.gradle/daemon/9.7.1/`.

Prefix the path with `github.workspace`. That also retires the second decode
into `apps/flipcash/app/key/` — it only existed to cover the module-relative
resolution, and nothing in the build reads that location.
@bmc08gt
bmc08gt requested a review from jeffyanta as a code owner September 8, 2026 14:52
@bmc08gt bmc08gt self-assigned this Sep 8, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Sep 8, 2026
@bmc08gt
bmc08gt merged commit d08d596 into code/cash Sep 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant