No description
  • Astro 41.5%
  • CSS 31.7%
  • TypeScript 23.6%
  • JavaScript 1.6%
  • Dockerfile 1.6%
Find a file
Tom Mendy dbd5fa0d7a
All checks were successful
publish-portfolio-image / publish (push) Successful in 1m14s
Add social sharing image and update deployment
2026-10-31 11:45:40 +01:00
.forgejo/workflows ci: publish Portfolio image with rootless BuildKit 2026-08-30 15:06:18 +02:00
.vscode Initialize Astro project with minimal starter setup 2026-08-29 10:55:12 +02:00
deploy Add social sharing image and update deployment 2026-10-31 11:45:40 +01:00
public Add social sharing image and update deployment 2026-10-31 11:45:40 +01:00
src Add social sharing image and update deployment 2026-10-31 11:45:40 +01:00
.dockerignore Add Docker deployment and Forgejo publishing workflow 2026-08-29 14:27:27 +02:00
.gitignore Initialize Astro project with minimal starter setup 2026-08-29 10:55:12 +02:00
AGENTS.md Initialize Astro project with minimal starter setup 2026-08-29 10:55:12 +02:00
astro.config.mjs Use Astro font providers for site typography 2026-10-31 11:39:21 +01:00
bun.lock Use Astro font providers for site typography 2026-10-31 11:39:21 +01:00
Dockerfile Add social sharing image and update deployment 2026-10-31 11:45:40 +01:00
package.json Use Astro font providers for site typography 2026-10-31 11:39:21 +01:00
README.md Add social sharing image and update deployment 2026-10-31 11:45:40 +01:00
tsconfig.json Initialize Astro project with minimal starter setup 2026-08-29 10:55:12 +02:00

Tom Mendy portfolio

A bilingual, static Astro portfolio for DevOps and Platform Engineering roles.

Install dependencies with Bun. The development server runs in Astro background mode:

bun install --frozen-lockfile
bun run dev
bun run dev:status
bun run dev:logs
bun run dev:stop

Validate types and build the static site:

bun run check
bun run build

To inspect build performance, run bun run build:timings.

French pages live under /fr/ and English pages under /en/. Shared copy is in src/data/portfolio.ts. Locally, / displays a language chooser. In the Nginx container, / redirects to /en/ when the Accept-Language header starts with English, and to /fr/ otherwise. The legacy /projects/homelab route redirects to /fr/projects/homelab/.

The Forgejo workflow at .forgejo/workflows/publish-portfolio.yml builds the static site and publishes it to:

harbor.home.tom-mendy.com/portfolio/portfolio

Every successful run publishes an immutable commit tag:

docker pull harbor.home.tom-mendy.com/portfolio/portfolio:sha-<commit>

The workflow runs on pushes to main and manual dispatch. Every successful run also updates latest. Use the commit tag in Kubernetes so a deployment always points to one exact build. The container listens on port 8080 and serves the generated Astro site with Nginx.

If the Harbor project is private, create an image pull secret in the target namespace and reference it from the Deployment:

kubectl -n portfolio create secret docker-registry harbor-registry \
  --docker-server=harbor.home.tom-mendy.com \
  --docker-username='<harbor-username>' \
  --docker-password='<harbor-token>'