Skip to content

ci: check PRs and publish images #50

Closed

Description

@uniqueg

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.yml and open-shift-deployment.yml) are named "Open Shift Deployment" and run only on pushes to master. dev is the default branch, so PRs get no checks. The old workflow still uses Yarn.
  • Only biome check runs. There is no type check (tsc --noEmit) and no next build before 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)

  1. Remove .github/workflows/open-shift-deployment.yml and 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).

  2. One ci.yml / CI, on push and pull_request to dev, with these jobs:

    Also set permissions: contents: read, timeout-minutes, persist-credentials: false, actions pinned by SHA with # vX.Y.Z, and concurrency per ref.

  3. Images to the org registry: docker.io/${{ vars.DOCKERHUB_ORG || 'elixircloud' }}/krini, pushed on dev by digest, scanned by digest in a job without credentials, then attested (build provenance, SBOM) and signed (cosign, keyless). Tags dev and sha-<commit> come from CI. latest is set only by releases (signed vX.Y.Z tags, GitHub pre-releases until 1.0.0, release notes in the org format). No third-party publish actions holding Docker Hub secrets.

  4. Dockerfile: multi-stage build with Next.js output: "standalone", non-root user, works with a read-only root file system (/tmp writable), OCI labels from docker/metadata-action, version via build arg, base images pinned by digest.

  5. Remove the repo-level .github/ISSUE_TEMPLATE/; the org's .github repo provides templates.

  6. Dependabot for bun/npm, Docker and GitHub Actions, targeting dev.

Acceptance criteria

  • Every PR to dev runs lint, type check, build, chart checks and the image scan. CI passed is the only required check.
  • Images are published only to the org registry, signed and attested, and never as latest from 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.

Activity

  1. added
    priority: high
    type: ci / cd
    type: security
    workload: days
    on Oct 24, 2026
  2. moved this from Backlog to Ready in ELIXIR On-Cloudon Oct 24, 2026
  3. added
    status: in progress
    on Nov 11, 2026
  4. self-assigned this
    on Nov 11, 2026
  5. moved this from Ready to In progress in ELIXIR On-Cloudon Nov 11, 2026
  6. moved this from In progress to In review in ELIXIR On-Cloudon Nov 13, 2026
  7. removed
    type: security
    on Nov 13, 2026
  8. moved this from In review to Done in ELIXIR On-Cloudon Nov 13, 2026
  9. removed
    status: in progress
    on Nov 13, 2026
  10. added this to the v0.1.0 milestone on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: hightype: ci / cdworkload: days

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions