This document describes the CI/CD pipelines for the Open Data Ensemble (ODE) monorepo.
The ODE monorepo uses GitHub Actions for continuous integration and deployment. Each project has its own pipeline that triggers only when relevant files change.
Workflow File: .github/workflows/synkronus-docker.yml
- Push to
main: Builds and publishes release images - Push to
dev: Builds and publishes pre-release images - Push to feature branches: Builds and publishes branch-specific images
- Pull Requests: Builds but does not publish (validation only)
- Manual Dispatch: Allows manual triggering with optional version tag
The workflow only runs when files in these paths change:
synkronus/**- Any file in the Synkronus project.github/workflows/synkronus-docker.yml- The workflow itself
Images are published to GitHub Container Registry (GHCR):
- Registry:
ghcr.io - Image:
ghcr.io/opendataensemble/synkronus
Image tags are computed by docker/metadata-action. The highest-priority tag per event is also used as the primary tag in manifest verification.
| Event | Tags produced | Published? |
|---|---|---|
| Release published, not prerelease | v{X.Y.Z}, v{X.Y}, v{X}, latest |
Yes |
| Release published, is prerelease | v{X.Y.Z}-{pre}, latest-pre-release |
Yes |
Push → main |
main, sha-{short} |
Yes |
Push → dev |
dev, sha-{short} |
Yes |
| Push → other branch | {branch-name}, sha-{short} |
Yes |
workflow_dispatch |
sha-{short} |
Yes |
| Pull request | pr-{number} |
No (build only) |
Moving pointer tags:
latest— always points to the most recent non-prerelease GitHub Release. Never moved by branch pushes.latest-pre-release— always points to the most recent prerelease GitHub Release (e.g.-alpha.N,-rc.N).main/dev— track the tip of the respective branch.
workflow_dispatch intentionally produces only sha-{short} so that manual runs cannot accidentally reassign latest, main, dev, or any other pointer tag.
- Multi-platform: Builds for
linux/amd64andlinux/arm64using Buildah - Attestation: Generates SLSA build provenance and pushes it to GHCR
- Metadata: Includes OCI-compliant labels (title, description, vendor, source, revision)
- Verification: After push, the manifest list and per-arch layers are pulled to confirm correctness
The workflow requires these permissions:
contents: read- To checkout the repositorypackages: write- To publish to GHCRid-token: write- For OIDC-based build provenance attestationattestations: write- To push attestation records to GHCR
GITHUB_TOKEN- Automatically provided by GitHub Actions
Workflow File: .github/workflows/formulus-android.yml
Builds Android APK for the Formulus React Native application, and builds/consumes Formplayer assets in a single, two‑job workflow.
- Push to
main/dev(formulus or formulus-formplayer changes): Builds Formplayer assets and then a release APK using those assets - Pull Requests (formulus or formulus-formplayer changes): Builds Formplayer assets and then a debug APK for validation
- Release: Publishes APK to GitHub Release
The workflow runs when files in these paths change:
formulus/**- Any file in the formulus projectformulus-formplayer/**- Any file in the formulus-formplayer projectpackages/tokens/**- Shared design tokens and build inputs.github/workflows/formulus-android.yml- The workflow itself
The workflow intelligently handles formplayer assets using two jobs:
-
build-formplayer-assetsjob:- Builds
@ode/tokens - Builds Formplayer assets using
npm run build:rninformulus-formplayer - Uploads the built assets from
formulus/android/app/src/main/assets/formplayer_dist/as a GitHub Actions artifact
- Builds
-
build-androidjob (depends on assets job):- Downloads the Formplayer assets artifact into
formulus/android/app/src/main/assets/formplayer_dist/ - Runs
npm run vendor:notifeeinformulus/to clone the pinned invertase/notifee commit intothird_party/notifee(gitignored; required for Gradle:notifee_core) - Builds the Android APK (debug for PRs, release for main/dev/release events)
- Downloads the Formplayer assets artifact into
Formplayer assets are not committed to git and are ignored via .gitignore. CI builds always use the assets artifact produced in the same workflow run, ensuring a single, consistent source of truth for each build.
- Pull Requests: Debug APK (unsigned)
- Push to main/dev: Release APK (signed with secrets)
- Release: Release APK published to GitHub Release
FORMULUS_RELEASE_KEYSTORE_B64- Base64 encoded keystore fileFORMULUS_RELEASE_STORE_PASSWORD- Keystore passwordFORMULUS_RELEASE_KEY_ALIAS- Key aliasFORMULUS_RELEASE_KEY_PASSWORD- Key password
Formplayer asset building and Android APK building are now handled within the same workflow:
Formplayer or Formulus Changes → build-formplayer-assets job → build-android job (consumes artifact) → APK artifact / Release upload
This ensures:
- No duplicate cross-workflow wiring
- A single workflow owns both asset and APK builds
- Each APK is built against the exact assets produced in the same run
- Formplayer build outputs do not pollute git history
Workflow: .github/workflows/sbom-release.yml
- Runs when a GitHub Release is published and uploads
*.cdx.jsonfiles to that release (alongside other assets such as the Formulus APK fromformulus-android.yml). - Manual test: Actions → SBOM (CycloneDX) → Run workflow; download the
cyclonedx-sbomartifact.
Local generation (requires Node + Go):
node scripts/sbom/generate-sboms.mjs --out sbom-distPoints to the most recent non-prerelease GitHub Release.
docker pull ghcr.io/opendataensemble/synkronus:latestPoints to the most recent prerelease GitHub Release (e.g. -alpha.N, -rc.N).
docker pull ghcr.io/opendataensemble/synkronus:latest-pre-releasedocker pull ghcr.io/opendataensemble/synkronus:v1.0.0Tracks the tip of the dev branch (rebuilt on every push to dev).
docker pull ghcr.io/opendataensemble/synkronus:devTracks the tip of the main branch between releases.
docker pull ghcr.io/opendataensemble/synkronus:maindocker pull ghcr.io/opendataensemble/synkronus:feature-xyzVersioned images are produced by publishing a GitHub Release (the workflow listens for release: [published]).
- Go to Releases → Draft a new release
- Create a new tag following semver, prefixed with
v:- Stable release:
v1.0.0 - Pre-release:
v1.0.0-rc.1,v1.0.1-alpha.7, etc.
- Stable release:
- Select the target commit (typically tip of
mainfor stable, tip ofdevfor pre-release) - Tick Set as a pre-release for alpha/beta/rc tags
- Click Publish release
This will create:
| Release kind | Tags produced |
|---|---|
Stable (v1.0.0) |
v1.0.0, v1.0, v1, latest |
Pre-release (v1.0.0-rc.1) |
v1.0.0-rc.1, latest-pre-release |
Note:
workflow_dispatchis available for manual runs but intentionally does not create any pointer tags (onlysha-{short}) — it is for debugging the build pipeline, not for publishing releases.
By default, GHCR packages inherit the repository's visibility:
- Public repositories → Public images (no authentication needed)
- Private repositories → Private images (authentication required)
For private images:
echo $GITHUB_TOKEN | docker login ghcr.io -u USERNAME --password-stdin- Go to the Actions tab in GitHub
- Select Synkronus Docker Build & Publish
- View recent runs and their status
- Go to the repository main page
- Click Packages in the right sidebar
- Select synkronus
- View all published tags and their details
- Check the Actions tab for error logs
- Common issues:
- Dockerfile syntax errors
- Missing dependencies in build context
- Network issues during dependency download
- Verify the branch name matches the workflow triggers
- Check that the workflow has
packages: writepermission - Ensure the push event (not PR) triggered the workflow
- Verify the image tag exists in GHCR
- For private repos, ensure you're authenticated
- Check image name spelling:
ghcr.io/opendataensemble/synkronus
- Test locally first: Build and test Docker images locally before pushing
- Use feature branches: Create feature branches for experimental changes
- Review build logs: Check Actions logs even for successful builds
- Tag releases properly: Use semantic versioning for releases
- Pin versions in production: Use specific version tags (
v{X.Y.Z}), notlatest - Staging/QA upcoming releases: Use
latest-pre-releaseto track the most recent prerelease (alpha/rc) - Bleeding-edge integration: Use
devfor builds from the tip of thedevbranch - Monitor image sizes: Keep images lean for faster deployments
- Use health checks: Always configure health checks in deployments
The automated asset build process ensures Formulus Android builds always have matching Formplayer assets:
- Developer makes changes to
formulus-formplayer - Opens/updates PR (or pushes to
main/dev) → the Formulus Android workflow:- Runs the
build-formplayer-assetsjob to build Formplayer assets and upload them as an artifact - Runs the
build-androidjob, which downloads the artifact and builds the APK
- Runs the
- No manual work: Assets are automatically built and passed between jobs via artifacts
- No conflicts: Assets are not committed to git, avoiding noisy diffs and merge issues
- Always consistent: Each Android build uses the assets built in that same workflow run
- Clean repository: Built assets live only in CI artifacts and local workspaces, not in version control
For local development, you can manually build and copy assets:
cd formulus-formplayer
npm run build:rnThis will:
- Build the formplayer web app
- Clean existing assets in formulus
- Copy new assets to
formulus/android/app/src/main/assets/formplayer_dist/
The build:rn script automatically handles cleaning, so no need to run clean-rn-assets separately.
Workflow file: .github/workflows/ode-desktop.yml
- Pull requests and pushes to
main/devwhen files underdesktop/**change (or the workflow file itself) - Manual dispatch
Runs only when desktop/** or .github/workflows/ode-desktop.yml changes.
From desktop/: pnpm lint, pnpm format:check, pnpm test, pnpm typecheck, pnpm codegen:synk-client, then fails if desktop/src/generated drifts from the regenerated OpenAPI client. From desktop/src-tauri/: cargo fmt --check, cargo clippy -D warnings, cargo test.
After building formplayer (npm run build in formulus-formplayer), copy its build/ into the desktop app with pnpm copy:formplayer from desktop/ (see desktop/README.md). Copied assets are gitignored under desktop/public/formplayer_dist/.
Potential improvements to the CI/CD pipeline:
- Automated formplayer asset synchronization
- Add automated testing before build
- Implement security scanning (Trivy, Snyk)
- Add deployment to staging environment
- Create release notes automation
- Add Slack/Discord notifications
- Implement rollback mechanisms
- Add performance benchmarking
- Root README - Monorepo overview
- Synkronus DOCKER.md - Docker quick start
- Synkronus DEPLOYMENT.md - Comprehensive deployment guide