* feat(release): one-button release cut from main and ECR Public versioned publishing
- New Release Cut workflow (workflow_dispatch, dry-run input): semantic-release
bumps pom.xml, writes CHANGELOG.md, commits, tags, and creates the GitHub
Release; the tag push fires release.yml unchanged. Requires a GH_TOKEN
fine-grained PAT (contents:write) because tags pushed with the default
GITHUB_TOKEN do not trigger workflows.
- .releaserc.json: release from main only (release/x.y.x retired for now)
- release.yml: push versioned + latest native and compat tags to ECR Public,
mirroring nightly.yml (OIDC role, public.ecr.aws/floci/floci) — previously
only nightlies reached ECR Public
* fix(release): serialize release cuts and pin the release toolchain
Address review findings on the Release Cut workflow:
- concurrency group so overlapping dispatches queue instead of racing to
push the same version/tag (no cancel-in-progress: a mid-flight release
is never killed)
- the semantic-release toolchain is now installed with npm ci
--ignore-scripts from a committed manifest + lockfile
(.github/release-tooling), so the job holding the contents:write PAT
runs a reproducible, fully pinned dependency tree instead of resolving
mutable version ranges at run time
* fix(release): commit the pinned lockfile, SHA-pin actions, document queue semantics
Replicates the review fixes that took the sibling OCI PR to a clean review:
- the repo-wide package-lock.json ignore silently excluded the release
toolchain's lockfile, so npm ci would fail on every dispatch; add a scoped
gitignore exception and commit the lockfile
- pin checkout/setup-java/setup-node to full commit SHAs — this workflow
holds the contents:write GH_TOKEN PAT, so a repointed action tag must not
be able to change the code it executes
- document the concurrency group's last-dispatch-wins semantics (GitHub
keeps one pending run per group; a superseded duplicate release cut is
redundant by definition)
* fix(release): pin the ECR publishing actions to full commit SHAs
The OIDC-enabled job that assumes the public-image publishing role must not
execute code selected by a repointable tag: configure-aws-credentials and
amazon-ecr-login are now pinned to full commit SHAs (tags noted in comments),
matching the SHA-pinned docker actions already in this workflow.
Both native Dockerfiles wrote the ~196 MB binary into the image twice. A RUN that
renames or chmods a large file rewrites the whole file into a new layer, so the
published image carried two copies of it:
110 MB ubi9-minimal base
18.8 MB microdnf install
196 MB COPY --chown=1001:root native/<arch>/ /app/
196 MB RUN mv /app/*-runner /app/application && chmod +x /app/application
Set the mode in the COPY itself and move the rename out of the image and into the
build pipeline, which now stages the binary as native/<arch>/application.
Dockerfile.native does the same with a single COPY --chmod=755 --from=build.
Measured on linux/arm64 against floci/floci:1.5.34, with a 196 MB binary on both
sides so the comparison is like for like:
uncompressed 521 MB -> 325 MB
compressed 168 MB -> 104 MB (sum of gzip -6 layer blobs; Docker Hub
reports 166.1 MB for 1.5.34)
layers 8 -> 6
No behaviour change. The only filesystem difference in the resulting image is
quarkus-artifact.properties, now 0755 rather than 0644, because --chmod applies to
every file in the staged directory. /app and /app/data keep 0775 and uid 1001:0 for
arbitrary-uid (OpenShift) runs, and /app/application keeps 0755 — docker/entrypoint.sh
gates its default command on [ -x /app/application ].
Add ECR Public Gallery (public.ecr.aws/floci/floci) as a second push
target alongside Docker Hub in both the release and nightly workflows.
Uses GitHub OIDC (id-token: write) with the org-level AWS_ROLE_ARN
secret and aws-actions/configure-aws-credentials to assume the ECR
push role. ECR Public requires us-east-1 regardless of the primary
deployment region.
Tags mirrored on each release: {version}, latest, {version}-compat,
latest-compat.
Tags mirrored on each nightly: nightly, nightly-{mmddyyyy},
nightly-compat, nightly-{mmddyyyy}-compat.
* chore(docker): add OCI image metadata labels
Add OCI image spec labels to Dockerfile.native-package, Dockerfile.jvm-package,
and Dockerfile.compat so published images carry standard metadata.
Static labels (title, description, url, source, licenses, vendor) are baked into
the Dockerfiles and are present in every build including local ones. Dynamic labels
(version, revision, created) are injected at publish time via the labels: input of
build-push-action in release.yml and nightly.yml.
Closes#851
* chore: setting not opencontainers labels
* chore(ci): CI hygiene batch (concurrency, timeouts, action pinning, Dependabot)
Rework of #350 with release-related changes removed per maintainer
feedback on #348 (semantic-release intentionally disabled while main
stabilizes).
What's included:
- Concurrency groups on all workflows (cancel superseded runs)
- timeout-minutes on all jobs (prevent stuck builds)
- SHA-pinned third-party actions (supply chain hardening)
- Dependabot config for Maven deps + GitHub Actions
- CODEOWNERS routing CI/release paths to @hectorvent
- SECURITY.md with private vulnerability reporting instructions
What's NOT included (intentionally):
- semver.yml changes (semantic-release on main)
- .releaserc.json changes (main branch addition)
* chore: switch Dependabot schedule from weekly to monthly