Repository navigation
Description
Why?
On rewrite-nextjs (ff1b0a0), CI doesn't check pull requests, and it publishes and deploys in ways that tie the repo to one deployment:
- Both workflows (
checks.ymlandopen-shift-deployment.yml) are named "Open Shift Deployment" and run only on pushes tomaster.devis the default branch, so PRs get no checks. The old workflow still uses Yarn. - Only
biome checkruns. There is no type check (tsc --noEmit) and nonext buildbefore merging. - Images go to a personal Docker Hub repository as
latest, after a password login. There is no scan, signature or provenance. - The OpenShift job is deployment-specific and logs in with
insecure_skip_tls_verify: true. - Actions are pinned by tag, not by SHA, and there is no
permissions:block.
Krini should be deployable anywhere from images the org publishes and a generic Helm chart (#52). Deployments pull those images; the repo doesn't deploy anywhere itself.
How? (org conventions as in cloud-registry and the FOCA app checklist, adapted to Node/Bun)
-
Remove
.github/workflows/open-shift-deployment.ymland the OpenShift job, the personal Docker Hub image (anurag1201/krini) and its secrets. Deployments update themselves (e.g. Pubgrade or the operator's own CD). -
One
ci.yml/CI, onpushandpull_requesttodev, with these jobs:Lint(Biome)Type checkBuild(next build)Test(once test: add unit and end-to-end tests #51 exists)Chart(lint and render the chart, once it exists, feat: add a Helm chart and document deployment #52)Scan image(Trivy on the image built for the PR, failing on fixable CRITICAL/HIGH)- a single required gate
CI passed(needs:all jobs,if: always())
Also set
permissions: contents: read,timeout-minutes,persist-credentials: false, actions pinned by SHA with# vX.Y.Z, and concurrency per ref. -
Images to the org registry:
docker.io/${{ vars.DOCKERHUB_ORG || 'elixircloud' }}/krini, pushed ondevby digest, scanned by digest in a job without credentials, then attested (build provenance, SBOM) and signed (cosign, keyless). Tagsdevandsha-<commit>come from CI.latestis set only by releases (signedvX.Y.Ztags, GitHub pre-releases until 1.0.0, release notes in the org format). No third-party publish actions holding Docker Hub secrets. -
Dockerfile: multi-stage build with Next.js
output: "standalone", non-root user, works with a read-only root file system (/tmpwritable), OCI labels fromdocker/metadata-action, version via build arg, base images pinned by digest. -
Remove the repo-level
.github/ISSUE_TEMPLATE/; the org's.githubrepo provides templates. -
Dependabot for
bun/npm, Docker and GitHub Actions, targetingdev.
Acceptance criteria
- Every PR to
devruns lint, type check, build, chart checks and the image scan.CI passedis the only required check. - Images are published only to the org registry, signed and attested, and never as
latestfrom CI. - No OpenShift files, personal registries or deployment secrets remain in the repo.
Dependencies: none; the Chart job comes with #52. The maintainer sets up the environments and secrets for the org registry and switches the ruleset to CI passed.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity