# gitea-actions Companion module for the ankurm.com post **Gitea Actions CI for Spring Boot: Build, Test, SBOM and Image Push**. All the explanation lives in the post; this module holds the code and the captured output the post quotes. | Piece | Version | |---|---| | Spring Boot | 4.2.0 | | JDK | Temurin 25.0.5.1+2 | | Maven | 3.9.11 | | Jib | 3.5.2 | | cyclonedx-maven-plugin | 2.9.3 (managed by the Spring Boot parent) | | Testcontainers PostgreSQL | `postgres:17-alpine` | | Gitea server checked | 1.27.3 | ## Quickstart ```bash export JAVA_HOME=/path/to/jdk-25 # a JDK 25 mvn -B -ntp verify # unit tests, jar, SBOM, integration tests (needs Docker) mvn -B -ntp -DskipTests -Plate-sbom package # the SBOM mistake the post explains ./scripts/run-all.sh # regenerates output/ (06 needs GITEA_TOKEN) ``` ## What is here | Path | What it is | |---|---| | `src/main`, `src/test` | A tiny ticket service: `PriorityRulesTest` (unit, surefire), `TicketApiIT` (PostgreSQL via Testcontainers, failsafe) | | `.gitea/workflows/ci.yaml` | The pipeline. Inert here (Gitea reads only the repository root). Copy it to the root of your project | | `scripts/` | One script per scenario the post shows | | `output/` | Real captured output of those scripts | ## Output index | File | Shows | |---|---| | `output/01-versions.txt` | Toolchain and pinned versions | | `output/02-cold-vs-warm-cache.txt` | Maven downloads with an empty and a populated local repository | | `output/03-build-test.txt` | The pipeline's build command, then the same command with Docker unreachable | | `output/04-sbom.txt` | SBOM contents, and the `-Plate-sbom` mistake | | `output/05-image-local-registry.txt` | Jib push to a throwaway `registry:2` and read-back | | `output/06-gitea-registries.txt` | Docker push to Gitea under a URL sub-path (fails), generic package upload (works) | | `output/07-workflow-lint.txt` | Static checks of the workflow | ## Honest limits - The workflow file was **not** executed by a Gitea runner. Each command in it was executed by the scripts above, in the same order, on a machine with Docker. That proves the commands, not Gitea's handling of the YAML. - `06-gitea-registries.sh` needs a personal access token in `GITEA_TOKEN`. The token is never written to a file. - Timings in `02` depend on the network; the download counts do not. MIT licensed.