Skip to content

Sample app, image, Helm chart and CI - #1

Merged
olivier2t merged 1 commit into
masterfrom
app-ci
Nov 18, 2026
Merged

olivier2t merged 1 commit into
masterfrom
app-ci

Conversation

@olivier2t

Copy link
Copy Markdown
Collaborator

The sample web application of the Cycloid Academy missions, with its image, Helm chart and CI.

What it adds

  • src/, test/: a Node.js page (no dependency) showing a message, the commit and the environment; /healthz; 5 unit tests on node:test.
  • Dockerfile: official Node 26 LTS image pinned by digest; tests run in a test stage; the app runs as the non-root node user.
  • chart/academy-app/: Deployment (non-root, read-only root filesystem, no privilege escalation, all capabilities dropped, no service account token, limits), Service, Ingress routed by hostname on K3s's Traefik (ingress.host, for example an sslip.io name).
  • .github/workflows/ci.yml: on every push, test, then publish ghcr.io/<owner>/<repository>:<sha> and oci://ghcr.io/<owner>/charts/academy-app version 0.1.0-g<sha>. No secret or variable, only GitHub's own checkout (pinned by SHA), least permissions, never pull_request_target.

How it was tested

On a laptop: node --test (5 pass); docker build of the test and runtime stages; the container runs as uid 1000 and the page shows the commit and environment; helm lint and helm template with alpine/helm:3.22.1, the image of Cycloid's helm step. This branch's push is the first CI run.

To check

  • The CI runs on GitHub's ubuntu-24.04 runners, since prospects' copies run there.
  • The packages GHCR creates are probably private; the decision is public.

Part of the K3s first path; its log is in cycloidio/academy-blueprints (docs/first-path-log.md, not pushed yet).

🤖 Generated with Claude Code

A Node.js page showing a message, the commit and the environment, with
unit tests on node:test; a Dockerfile on the official Node LTS image
pinned by digest, non-root; a Helm chart routed by hostname on K3s's
Traefik; a CI that tests, then publishes the image and the chart to
GHCR, tagged by commit, with no secret and no third-party action.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@olivier2t
olivier2t marked this pull request as ready for review November 18, 2026 18:57
@olivier2t
olivier2t merged commit 5610f2d into master Nov 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant