← All case studies
Flutter · Fastlane & CI/CD 2024
Mobile DevOps Pipeline — From Git Tag to Google Play Automatically
Reproducible continuous delivery pipeline for Flutter Android apps: clean cloud builds, encrypted Keystore signing, multi-track testing, and staged Google Play rollouts.
release.yml · git tag v* Play App Signing
1. Build
Flutter .aab
2. Sign
Keystore v3
3. Tracks
Internal/Beta
4. Rollout
Staged Prod
TL;DR · Systems Summary
GitHub Actions + Fastlane building signed Android App Bundles (.aab) with Play App Signing, FCM push readiness, and automated track promotion.
Engineering Challenge
Manual local mobile builds create fragile release bottlenecks: misplaced Keystores, inconsistent build flags, and unverified binaries reaching end users without structured beta gates.
Architecture Decisions
- Tag-driven deterministic builds (
v*): Tagging a release spins up an isolated GitHub Actions runner, injects encrypted signing secrets, and compilesflutter build appbundle --release. - Keystore custody & Play App Signing: Automated upload to Google Play Console via
fastlane supplywith v2/v3 signing verification. - Multi-track quality gates & policy compliance: Builds land in Internal testing first, graduate to Closed Beta cohorts for crash-free validation, and stay compliant with current Google Play Target SDK, Data Safety, and Firebase Cloud Messaging (FCM) runtime permissions.
on:
push:
tags: ['v*']
jobs:
release-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- run: flutter build appbundle --release
- run: bundle exec fastlane supply --track internal --aab build/app/outputs/bundle/release/app-release.aab
Key Outcome
Zero-touch, repeatable Android deployments from commit tag to staged Google Play rollout.