Shared GitHub Actions workflows and composite actions for Spring Cloud projects. This repository provides reusable automation for building, testing, and deploying Spring Cloud repositories with consistent branch and JDK version handling.
- Workflows — Reusable workflows callable from other repositories
- Actions — Composite actions used by those workflows (and optionally by callers)
- Config — Centralized configuration (e.g. branches and JDK versions per project)
- Examples — Example caller workflows you can copy into your project
| Workflow | Description | Documentation |
|---|---|---|
| deploy.yml | Build and deploy Spring Cloud projects with matrix builds (branch × JDK). Uses centralized config to decide what to build and deploy. | Deploy workflow README |
| Action | Description | Documentation |
|---|---|---|
| determine-matrix | Reads config/projects.json and produces a build matrix (branches × JDK versions) for the current repo and event. Supports OSS/commercial, scheduled vs single-branch, and comma-separated branch overrides. | Determine Matrix README |
- config/projects.json — Defines, per project, which branches to build (e.g. for scheduled runs) and which JDK versions to use per branch. Includes separate
ossandcommercialsections and adefaultsfallback. The determine-matrix action reads this file to build the matrix used by the deploy workflow.
- In your Spring Cloud project, add a workflow that calls the deploy workflow (see examples/deploy.yml).
- Configure the required secrets in your repository (
ARTIFACTORY_*,DOCKERHUB_*; addCOMMERCIAL_*for commercial repos). - Trigger via push, schedule, and/or
workflow_dispatch. The deploy workflow will use this repo’s config and actions to decide what to build and deploy.
For full details on inputs, secrets, and behavior, see the Deploy workflow README and the Determine Matrix action README.