Toolverse
All skills

publish-mock-server

by vfarcic

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.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
vfarcic
Category
Testing
Views
1

About this skill

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.

How to use

  1. Upewnij się, że Docker jest zainstalowany i uruchomiony na Twojej maszynie. Zaloguj się do GitHub Container Registry poleceniem docker login ghcr.io i podaj swoje dane uwierzytelniające.

  2. Uruchom umiejętność publish-mock-server, gdy dokonasz zmian w fixtures (katalog mock-server/fixtures/), kodzie serwera (pliki server.ts, routes.ts) lub schematach API, które wpływają na odpowiedzi mock-serwera.

  3. Umiejętność automatycznie zbuduje obraz Docker dla obu architektur (linux/amd64 i linux/arm64) i opublikuje go do ghcr.io/vfarcic/dot-ai-mock-server:latest za pomocą docker buildx build.

  4. Poczekaj na potwierdzenie w logu, że obraz został pomyślnie wypchnięty do rejestru. Sprawdź, czy dane wyjściowe pokazują obie platformy.

  5. Po publikacji inne usługi (np. dot-ai-ui) mogą używać opublikowanego obrazu w swoich konfiguracjach Docker Compose, odwołując się do ghcr.io/vfarcic/dot-ai-mock-server:latest na porcie 3001.

Related skills