Commit graph

3 commits

Author SHA1 Message Date
4705fb5e4f ci: fix straw build workflow — plain git clone (no node) + dynamic apksigner
Some checks failed
build-apk / build-and-publish (push) Failing after 2s
gitleaks / scan (push) Successful in 40s
The build-and-publish job runs in the straw-build container, which ships
the Android + Rust toolchain but NOT node. actions/checkout@v4 is a Node
action, so it died with 'exec: "node": not found' before any source was
checked out — every build run since the workflow landed was red for this,
not the registry-pull theory.

- Replace both actions/checkout@v4 steps with a plain 'git clone' (git is
  in the image, both repos are public). Also sidesteps the runner's flaky
  data.forgejo.org action fetch. strawcore stays a sibling of straw for
  the rust/strawcore path dependency.
- Pick apksigner from whatever build-tools the image actually ships (36),
  not the hardcoded 34.0.0 that doesn't exist in it.

Build + publish prereqs verified present: docker CLI in image, runner
docker_host=automount + --group-add, and the STRAW_SIGNING_KEYSTORE_B64 /
STRAW_FDROID_RACKHAM_KEY secrets are set.
2026-06-20 13:11:22 -07:00
5e89056f62 ci: Forgejo build workflow — per-repo straw-build image, gated auto-publish
Some checks failed
build-apk / build-and-publish (push) Failing after 1m5s
gitleaks / scan (push) Successful in 1m0s
Build the Straw APK in CI from a dedicated, ephemeral build container
(git.sulkta.com/sulkta-infra/straw-build — Android SDK/NDK + Rust +
cargo-ndk, see ci/Dockerfile) instead of the persistent crafting-table.
The runner spins the container up per job and tears it down after.

On push to main (after the build passes + the signer fingerprint is
verified against the canonical key) it publishes to fdroid.sulkta.com:
APK into the Lucy repo + index re-sign via the host docker socket, then
the signed repo streamed to Rackham web168 over a scoped forced-command
deploy key. Keystore + deploy key are Forgejo repo secrets.

Build steps run under `ionice -c3 nice` so they can't I/O-starve the live
DBs on Lucy.
2026-06-19 20:18:32 -07:00
beb994b6e2 ci: add gitleaks workflow (Sulkta canonical)
Some checks failed
gitleaks / scan (push) Failing after 33s
2026-05-27 22:14:58 -07:00