Repository navigation
ci: check PRs and publish images - #60
Conversation
Build the Next.js standalone server (NEXT_OUTPUT=standalone) and run only it, its static files and public/ in the runtime stage, owned by root and run as the user bun. Next.js caches go to /tmp/next-cache, so the image works with a read-only root file system and a writable /tmp. Both stages use the Bun image of packageManager (now [email protected]), pinned by digest; OS packages are upgraded; the version comes in as a build argument (OCI label); a health check requests the start page. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Document the image tags that CI publishes, how to run the image (port, non-root, read-only root file system with a writable /tmp), how to verify its signature and provenance, and how to build it. Fix the case of the link to the deployment guide in the README. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
On pushes, the image job now pulls and checks exactly the digest that push pushed, in a job without credentials, so that the published image is the checked one (publish already needs image). Pull requests still build the image locally. The trap is set before docker run, and the comment names the asset that the image optimizer check depends on. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Say which commits get the dev and sha-<commit> tags, that the smoke test and the scan check the pushed digest, what the health check needs, and what a fork needs to publish and verify its own images. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Reviewer's GuideConfigurationReplace the old checks and OpenShift deployment workflows with a gated CI pipeline that tests pull requests and publishes, scans, attests, signs, and tags images on branch pushes.
Build a standalone, non-root Docker image that supports a read-only root filesystem, and align its Bun version with the package manager version CI checks.
Configure monthly Dependabot updates for Bun, GitHub Actions, and Docker, and provide the empty Trivy ignore list expected by the image scan.
Remove repository-local issue templates now that the organization provides shared templates.
DocumentationDocument the published image’s tags, runtime requirements, verification, build process, and fork publishing setup, and correct the deployment-guide link in the README.
Other changesFiles not grouped.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
…blish # Conflicts: # .github/ISSUE_TEMPLATE/bug_report.md # .github/ISSUE_TEMPLATE/custom.md # .github/ISSUE_TEMPLATE/feature_request.md # .github/workflows/checks.yml # .github/workflows/open-shift-deployment.yml # Dockerfile # README.md # docs/deployment.md # next.config.ts # package.json
Krini's pull requests now target `staging`, which will later replace `dev`. CI runs on pull requests and pushes to both branches. Pushes tag the image with the branch name (`staging` or `dev`) and `sha-<commit>`, and the version label says which branch it came from. Dependabot targets `staging`. The deployment guide uses `staging` in its examples. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
A commit pushed to both `staging` and `dev` gets two images, as the version label and provenance name the branch. `sha-<commit>` now stays on the image published first instead of following the last run. The deployment guide documents this and the version label, and its cosign example accepts signatures from both branches. The Dependabot comment says that the file takes effect only on the default branch. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Only a "not found" answer adds `sha-<commit>`; other lookup errors (e.g. rate limits) fail the step, so that a short registry error can't move the tag. The cosign example checks `staging` images against the `staging` branch only, and says what to use for `dev` and `sha-<commit>` tags. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Linked issuesChecked at commit 998e789 #50 ci: check PRs and publish images · 6 of 11 met · 2 to check by hand
|
There was a problem hiding this comment.
Hey - I've found 13 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/workflows/ci.yml" line_range="481" />
<code_context>
+ for tag in "${tags[@]}"; do
+ docker buildx imagetools create --tag "${tag}" "${IMAGE_NAME}@${DIGEST}"
+ actual="$(docker buildx imagetools inspect "${tag}" \
+ --format '{{ json .Manifest }}' | jq -r .digest)"
+ if [[ "${actual}" != "${DIGEST}" ]]; then
+ echo "::error::${tag} points to ${actual}, expected ${DIGEST}"
</code_context>
<issue_to_address>
**Every image publish fails**
When a push reaches the tag-verification loop, `docker buildx imagetools inspect --format '{{ json .Manifest }}'` outputs the manifest, which has no top-level `digest`; `jq -r .digest` returns `null`, so the comparison fails after the branch tag is created and the SHA tag is not created.
Read the inspected image digest from the inspect output instead of querying `.digest` from `.Manifest`.
</issue_to_address>
### Comment 2
<location path=".github/workflows/ci.yml" line_range="417" />
<code_context>
+ REF: ${{ github.ref }}
+ SHA: ${{ github.sha }}
+ run: |
+ head=$(git ls-remote "https://github.com/${REPOSITORY}.git" "${REF}" | cut -f1)
+ [ -n "${head}" ] || { echo "::error::Could not look up ${REF}"; exit 1; }
+ if [ "${head}" = "${SHA}" ]; then
</code_context>
<issue_to_address>
**Older runs overwrite current branch tags**
When the branch advances after the head lookup but before the tag step, `publish` keeps `current=true` and tags the older digest, so deployments pulling the branch tag get stale code.
Recheck the ref immediately before tagging and skip the branch-tag update if the run's commit is no longer current.
Also at `.github/workflows/ci.yml:479`.
</issue_to_address>
### Comment 3
<location path=".github/workflows/ci.yml" line_range="493" />
<code_context>
+ # (except the intended skips: `title` on pushes and for Dependabot, `push`
+ # and `publish` on pull requests) and on missing results. Add every new
+ # job to `needs`
+ passed:
+ name: CI passed
+ runs-on: ubuntu-latest
</code_context>
<issue_to_address>
**PRs can bypass the CI gate**
When a contributor’s pull request changes `.github/workflows/ci.yml` and retains or recreates the required `CI passed` check, gitHub runs the pull request’s workflow definition, so the contributor can remove the validation jobs or replace the gate action with a successful job using the same `CI passed` name. The required check then goes green without the intended checks, allowing unvalidated code to be merged and later published.
Require an independently enforced review for workflow changes or make the required gate come from a trusted workflow that pull requests cannot replace.
</issue_to_address>
### Comment 4
<location path=".github/workflows/ci.yml" line_range="479" />
<code_context>
+ exit 1
+ fi
+ for tag in "${tags[@]}"; do
+ docker buildx imagetools create --tag "${tag}" "${IMAGE_NAME}@${DIGEST}"
+ actual="$(docker buildx imagetools inspect "${tag}" \
+ --format '{{ json .Manifest }}' | jq -r .digest)"
</code_context>
<issue_to_address>
**Branch and SHA tags diverge**
When the branch-tag operation succeeds but creating or verifying the SHA tag fails, the tag loop updates the branch tag first, then fails on the SHA tag, leaving the branch tag updated and the SHA tag missing while the publish gate fails.
Complete and verify the SHA-tag operation before updating the branch tag.
</issue_to_address>
### Comment 5
<location path=".github/workflows/ci.yml" line_range="479" />
<code_context>
+ exit 1
+ fi
+ for tag in "${tags[@]}"; do
+ docker buildx imagetools create --tag "${tag}" "${IMAGE_NAME}@${DIGEST}"
+ actual="$(docker buildx imagetools inspect "${tag}" \
+ --format '{{ json .Manifest }}' | jq -r .digest)"
</code_context>
<issue_to_address>
**Commit tag can be overwritten**
When the same commit is published to `staging` and `dev` concurrently and both look up the SHA tag before either creates it, both `publish` jobs can observe `sha-${SHA}` as absent, then each `docker buildx imagetools create` retags it to its branch-specific digest. The tag ends up pointing to whichever job writes last, rather than reliably staying on the first-published image; a job can also fail verification after the other job retags it.
Serialize the SHA-tag check-and-create across branches, or use a registry operation that atomically creates the tag only if absent.
Also at `.github/workflows/ci.yml:404-405`.
</issue_to_address>
### Comment 6
<location path=".github/workflows/ci.yml" line_range="381" />
<code_context>
+ with:
+ image: ${{ steps.image.outputs.image }}
+ category: image
+ upload: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
+
+ # Attests the build provenance of the scanned digest (GitHub artifact
</code_context>
<issue_to_address>
**Dependabot scans fail SARIF upload**
When a Dependabot PR has its head branch in this repository, the scan step sets `upload` to true for same-repository pull requests, including Dependabot PRs. GitHub gives Dependabot-triggered workflows a read-only token, so the shared scan action's code-scanning upload is denied and the scan job fails, leaving `CI passed` red for dependency PRs.
Set `upload` to false for Dependabot PRs, as well as for fork PRs.
</issue_to_address>
### Comment 7
<location path=".github/dependabot.yml" line_range="46" />
<code_context>
+ # Images in the `Dockerfile` (Bun, pinned by digest); pull requests that
+ # bump its version must also bump `packageManager` in `package.json`,
+ # which CI's `lint` job checks
+ - package-ecosystem: docker
+ directory: /
+ schedule:
</code_context>
<issue_to_address>
**Bun update PRs fail lint**
When dependabot proposes a Docker image update to a newer Bun version, dependabot updates the Dockerfile image version but not `packageManager` in `package.json`, so lint rejects the mismatch and the update PR cannot pass CI.
Configure the update flow to change `packageManager` alongside the Dockerfile's Bun version.
Also at `.github/workflows/ci.yml:104-105`.
</issue_to_address>
### Comment 8
<location path=".github/workflows/ci.yml" line_range="228" />
<code_context>
+ # the start page redirects to the dashboard; the login page is
+ # served without settings; an optimized image is written to
+ # `.next/cache` (a link to `/tmp`)
+ if curl -fs -o /dev/null http://127.0.0.1:3000/auth/login; then
+ status="$(curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:3000/)"
+ if [[ "${status}" != 307 ]]; then
</code_context>
<issue_to_address>
**Redirected login pages pass smoke test**
When `/auth/login` returns a redirect instead of serving the page, `curl -f` treats a 3xx response as successful, so the smoke test does not verify that the login page was served and CI can publish an image with a broken login flow.
Make the smoke test fail when `/auth/login` redirects instead of serving the page.
</issue_to_address>
### Comment 9
<location path="docs/deployment.md" line_range="51-53" />
<code_context>
+ `LISTEN_HOSTNAME` (e.g. `::` for IPv6) to change the interface.
+- It runs as the non-root user `bun` (UID 1000) and can't change its own
+ code.
+- It works with a read-only root file system: only `/tmp` must be
+ writable (e.g. an `emptyDir` volume in Kubernetes). Next.js caches, such
+ as optimized images, go to `/tmp/next-cache`.
+- The image has a health check that requests the start page on
+ `127.0.0.1`; with a `LISTEN_HOSTNAME` that doesn't include the loopback
</code_context>
<issue_to_address>
**Kubernetes emptyDir prevents startup**
When a Kubernetes deployment mounts a default root-owned `emptyDir` at `/tmp` without setting `fsGroup` or otherwise granting UID 1000 write access, the container runs as UID 1000, so `mkdir -p /tmp/next-cache` fails with `EACCES` when the documented `emptyDir` is mounted without write permissions for that UID; the container never starts.
Document that the mounted volume must be writable by UID 1000, for example by configuring an appropriate `fsGroup`.
</issue_to_address>
### Comment 10
<location path=".github/workflows/ci.yml" line_range="498" />
<code_context>
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ if: always()
+ needs: [title, lint, typecheck, build, audit, image, push, scan, publish]
+ permissions: {}
+ steps:
</code_context>
<issue_to_address>
**Add the deferred test job**
The issue calls for a Test job once #51 exists. The workflow has no Test job, and the PR description defers this work to the test changes.
</issue_to_address>
### Comment 11
<location path=".github/workflows/ci.yml" line_range="498" />
<code_context>
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ if: always()
+ needs: [title, lint, typecheck, build, audit, image, push, scan, publish]
+ permissions: {}
+ steps:
</code_context>
<issue_to_address>
**Add the deferred chart job**
The issue calls for a Chart job once the chart exists. The workflow has no Chart job, and the PR description defers it to #52.
</issue_to_address>
### Comment 12
<location path=".github/workflows/ci.yml" line_range="392" />
<code_context>
+ if: ${{ github.event_name != 'push' }}
+ run: docker build -t "${IMAGE_NAME}:scan" .
+ - name: Pull the pushed image
+ if: ${{ github.event_name == 'push' }}
+ env:
+ DIGEST: ${{ needs.push.outputs.digest }}
</code_context>
<issue_to_address>
**Add the release workflow**
The issue asks for releases to create signed version tags, pre-releases, release notes, and the latest tag. This workflow only publishes on branch pushes, and the PR defers release handling.
</issue_to_address>
### Comment 13
<location path=".github/dependabot.yml" line_range="15" />
<code_context>
+ directory: /
+ schedule:
+ interval: monthly
+ target-branch: staging
+ labels: ["type: dependencies"]
+ commit-message:
</code_context>
<issue_to_address>
**Target Dependabot at dev**
The issue asks Dependabot version updates to target dev, but this entry and the other ecosystem entries target staging.
</issue_to_address>Sourcery assessment
Needs a human reviewer. 13 findings to address first, and a push to staging or dev can now publish, sign, and move a public image tag; deployments that consume that tag could run a faulty image. Reverting the workflow does not restore the previous tag or undo deployments that already pulled it.
Blocking findings: .github/workflows/ci.yml:481, .github/workflows/ci.yml:417, .github/workflows/ci.yml:493, .github/workflows/ci.yml:479, .github/workflows/ci.yml:479, and 8 more
The publish job now creates `sha-<commit>` before the branch tag, so a failure leaves the branch tag where it was. The smoke test requires 200 from `/auth/login`; `curl -f` also accepted a redirect. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Brings in the CI workflow (#60) and the env file checks (#68). The README note on the login host keeps the wording of this PR and adds where to set the two variables. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
One CI workflow checks every pull request to
staginganddev. Pushes to either branch publish signed, attested images to the org registry. The OpenShift deployment and the personal Docker Hub image are removed.Base:
staging. This PR now targetsstaging, which holds the Next.js/Bun app (#61).origin/stagingis merged into the branch (no rebase). Its tree was identical to the head of #56 that this branch was stacked on, so the merge took this branch's side throughout. The diff againststagingis now only this PR's 13 files. This PR changes no app code..github/workflows/ci.yml(CI): runs onpushandpull_requesttostaginganddev. Adapted from cloud-registry (push, scan and publish jobs) and cloud-registry-ui (lint, build, audit and image jobs).PR title,Lint(Biome; also checks that the Bun images in theDockerfilematchpackageManagerand are pinned by digest),Type check(next typegen+tsc --noEmit),Build(next build),Audit(bun audit --prod --audit-level=high).Build image: builds the image and smoke-tests it as non-root with--read-only --tmpfs /tmp, checking the login page, the start-page redirect and a write by the image optimizer to/tmp/next-cache.Scan image: Trivy via the sharedscan-imageaction. For pull requests, it scans the image fromBuild image. For pushes, it scans exactly the pushed digest. The job has no credentials and fails on fixable CRITICAL/HIGH findings.Push image(by digest, with SBOM and provenancemode=max, environmentdev-images), thenPublish image(build provenance attestation,cosignkeyless signature, then the tags<branch>(stagingordev) andsha-<commit>, only while the commit is still the branch head). The version label is<version>-<branch>+<commit>. CI never setslatest.CI passed(sharedgateaction). Allowed skips:title(on pushes and for Dependabot),pushandpublish(on pull requests).permissions: contents: readby default, a timeout on every job,persist-credentials: false, actions pinned by SHA with# vX.Y.Z, per-ref concurrency as in cloud-registry.docker.io/${{ vars.DOCKERHUB_ORG || 'elixircloud' }}/krini. No third-party publish actions hold Docker Hub secrets.Dockerfile: multi-stage build. The runtime stage holds only the Next.js standalone server (NEXT_OUTPUT=standalone, set innext.config.tsonly when that variable is set, sobun run startstill works), owned by root and run asbun(UID 1000)..next/cacheis a link to/tmp/next-cache, so a read-only root file system with a writable/tmpworks. Both stages useoven/bun:1.4.4pinned by digest (packageManagerset to[email protected]to match). OS packages are upgraded, OCI labels added, the version is passed as a build arg, and the image has a health check.checks.ymlandopen-shift-deployment.yml(OpenShift rollout withinsecure_skip_tls_verify,anurag1201/krini:latest), and.github/ISSUE_TEMPLATE/(the org's.githubrepo provides the templates)..github/dependabot.yml: covers Bun, GitHub Actions and Docker, monthly, targetingstaging, with the labeltype: dependencies. (Security updates always go to the default branch, currentlydev.).trivyignore.yaml: empty list of accepted findings, in the org format.docs/deployment.md(tags forstaginganddev, running the image, read-only root file system, verifying withcosignandgh attestation verify, building, publishing from a fork). The README link to the deployment guide now uses the file's actual case (docs/deployment.md)..dockerignoreand.gitignoreare left as onstaging, which already keeps.env*(except.env.example),*.pemand*.keyout of images and git.Not included:
TestandEnd-to-end testsjobs:staginghas notestscript yet. test: add unit and end-to-end tests #63 (Vitest + Playwright, test: add unit and end-to-end tests #51) and Chitransh's branchchore/add-tests-and-docsadd them tochecks.yml, which this PR replaces withci.yml. See "Overlaps".Chartjob: the Helm chart doesn't exist yet (feat: add a Helm chart and document deployment #52).release.ymlforvX.Y.Ztags, the only place that would setlatest. It needs release prerequisites that Krini doesn't have yet (CITATION.cff, release notes indocs/releases/). See open questions.Closes #50
Overlaps with other open work
test/51-unit-e2e) andchore/add-tests-and-docs: both addtest(and test: add unit and end-to-end tests #63 ane2e) job to.github/workflows/checks.yml, which this PR deletes. Whichever merges second gets a modify/delete conflict onchecks.yml. Resolution: deletechecks.ymland move the jobs intoci.yml, with theTest/End-to-end testsnames, pinned actions,bun-version-file: package.json,persist-credentials: false, a timeout, and the job IDs added toneedsofpassed. If test: add unit and end-to-end tests #63 merges first, I'll do this here; if this PR merges first, test: add unit and end-to-end tests #63 needs it. Both also pin Bun1.2.21in their jobs, while this PR movespackageManagerto[email protected]. test: add unit and end-to-end tests #63's.dockerignore/.gitignoreadditions (test artefacts) don't conflict with this PR.docs/9-privacy-notice): stacked on test: add unit and end-to-end tests #63, so the samechecks.ymlconflict; it also touchesdocs/deployment.mdandREADME.md, likely in other sections.fix/56-review-fixes): touchespackage.json,README.mdanddocs/deployment.md; small textual conflicts are possible inpackage.json(packageManager) and the docs.Verification
Earlier, on the head of #56 (whose tree equals
staging), all checks were run locally in containers:docker build .: passed.bun install --frozen-lockfileworks with Bun 1.4.4 and the existingbun.lock.docker run --read-only --tmpfs /tmp: the container runs as UID 1000./returns 307 to/dashboard,/auth/loginreturns 200 and/_next/image?...returns 200. The image optimizer writes to/tmp/next-cache/images, and the health check reportshealthy.--severity CRITICAL,HIGH --ignore-unfixed --exit-code 1): exit code 0.bun run lint,bunx next typegen && bunx tsc --noEmit,bun run build,bun audit --prod --audit-level=high: passed.actionlint1.7.7 andzizmor1.14.2 (--offline): no findings.After the merge of
staging:git diff origin/staging...HEAD: only this PR's 13 files; the merge resolution is identical to the previous branch head (git diff d9c57c5 <merge>is empty).actionlint/zizmorwere not rerun locally for the last commit (only trigger, tag and comment changes); CI covers the workflow.6f8c603): every job passed andCI passedis green.Push imageandPublish imagewere skipped as intended on a PR.Trivycode scanning passed with no open alerts, andVercel – krinipassed.No image was pushed and no tag was created from my machine.
Lane
Full review (release-adjacent: image publishing, signing, credentials). The earlier commits were reviewed before the first push; the
stagingcommit was reviewed withadversarial-reviewerandquality-reviewer.Fixed after review of the
stagingchanges:sha-<commit>no longer follows the last run: it is created only if it doesn't exist yet, and lookup errors other than "not found" (e.g. rate limits) fail the step instead of moving the tag. Checked with a stubbeddockerfor the three cases (exists, not found, 429).<version>-<branch>+<commit>, which identity to use incosign verifyforstaging,devandsha-<commit>tags, and that the environment namedev-imagesis kept.Fixed after Sourcery's review (6f8c603):
Publish imagecreates and verifiessha-<commit>before the branch tag, so a failure leaves the branch tag where it was./auth/login(curl -falso accepted a redirect).Declined review findings
.trivyignore.yamlmay not be read (medium). It is read: the sharedscan-imageaction at v1.0.0 passestrivyignores: .trivyignore.yamlto every Trivy step. The action also needs the file to exist.oven/bunimage instead of-slim, and runsapt-get upgrade(medium). Both are kept for parity with cloud-registry-ui, the org's Next.js template. Moving every Bun app to-slimshould happen for all of them at once.publishcancelled by a newer push turnsCI passedred on the intermediate commit (low). Same behaviour as cloud-registry's shared pattern, and no wrong image is published.CI passedfor the commit.sha-<commit>check and create aren't atomic across thestaginganddevruns (low). If the same commit is pushed to both branches at the same moment, both runs can create the tag (the last one wins), or the verify step of one run can fail. The window is seconds,devwill be replaced bystaging, and a repo-wide publish group would let one branch cancel the other's pending publish. Accepted as is.dev-imagesnow also servesstaging(low). Kept, so that existing settings and forks don't need a new environment; documented, and can be renamed whendevis dropped..digestfrom.Manifest(high). False positive: inimagetools inspect --format,.Manifestis the descriptor and hasdigest; cloud-registry's push runs pass the same check.cancel-in-progress: false), so the newer commit's publish tags after it; the org's shared pattern.ci.ymland fakeCI passed(medium). Inherent to required checks; maintainers review workflow changes, and publishing only runs after merge with branch-limited environment secrets.security-events: write, which Dependabot runs may raise; cloud-registry-ui's Dependabot PRs passScan imagewith the same condition.packageManager, which the maintainer adds; digest-only updates pass.emptyDirat/tmpnot writable by UID 1000 (medium). Kubernetes createsemptyDirwith mode 0777.dev(medium). Deferred by ci: check PRs and publish images #50 itself (test: add unit and end-to-end tests #51, feat: add a Helm chart and document deployment #52) or decided (PRs targetstaging); see "Not included".dependabot.ymlonly from the default branch (dev) (medium). Not fixable in this PR: version updates start once the file reaches the default branch, or oncestagingbecomes the default branch. Security updates target the default branch. See open questions.Questions for the maintainer (not blocking)
release.yml(the only workflow that setslatest, with signed tags and pre-releases until 1.0.0) in a follow-up issue together withCITATION.cffand release notes, or in this PR?dev. Should the default branch switch tostagingonce this is merged (then also onlystagingneeds a ruleset requiringCI passed)?Vercel – krinipasses now. Is it still wanted next to the published images?Before and after merge (maintainer)
These steps need repository settings that this PR can't change. The first two must be done before this PR is merged, because the first push to
stagingthen runsPush image:dev-imageswith a deployment branch policy forstaginganddevonly, and give itDOCKERHUB_LOGINandDOCKERHUB_TOKEN(a token that can push toelixircloud/krini) unless the org secrets apply. GitHub would otherwise createdev-imageson the first run with no protection.elixircloud/krinias public.Build imageandScan imagepull the pushed digest without logging in, so a private repository fails them.DOCKERHUB_LOGIN/DOCKERHUB_TOKENof the personal account (if they are repository secrets),OPENSHIFT_SERVERandOPENSHIFT_TOKEN, and the environmentproductionif nothing else uses it.staginganddevto require onlyCI passed(source: GitHub Actions), then update open PR branches.anurag1201/krinion Docker Hub and the OpenShift deployment that pulled it.🤖 Generated with Claude Code
https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Summary by Sourcery
Establish branch-gated CI and secure, verifiable container image publishing for the staging and dev branches.
New Features:
Bug Fixes:
Enhancements:
CI:
Deployment:
Documentation:
Chores: