# Publish Mock Server

> Build and publish the mock-server Docker image to GitHub Container Registry. Use when mock server fixtures or code have changed and need to be published. Use when this capability is needed.

- Skill: `tomevault-io/publish-mock-server` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/publish-mock-server`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/publish-mock-server/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/publish-mock-server

---


# Publish Mock Server

Build and publish the mock-server Docker image to `ghcr.io/vfarcic/dot-ai-mock-server:latest`.

## Prerequisites

- Docker is installed and running
- User is authenticated to ghcr.io (`docker login ghcr.io`)

## Steps

1. **Build and push multi-arch Docker image**

   Build for amd64 and arm64, then push:
   ```bash
   docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/vfarcic/dot-ai-mock-server:latest --push /Users/viktorfarcic/code/dot-ai-prd-354-rest-api-route-registry-openapi/mock-server
   ```

2. **Verify the push**

   Confirm the image was pushed successfully by checking the output shows both platforms.

## Usage

After publishing, consumers (like dot-ai-ui) can use:

```yaml
services:
  mock-api:
    image: ghcr.io/vfarcic/dot-ai-mock-server:latest
    ports:
      - "3001:3001"
```

## When to Publish

Run this skill when:
- Fixtures are added or modified in `mock-server/fixtures/`
- Mock server code changes (`server.ts`, `routes.ts`)
- API schemas change that affect mock responses

## Notes

- Always publishes as `latest` tag (no version management needed)
- Image is ~230MB (Node.js 22 alpine + fixtures)

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/vfarcic) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

