- add config.yml as single source of truth for collected repos/categories - add collect.py CLI to pull lib/api/wiki site builds and mcp bundles from source repos and regenerate nginx.conf + _index/index.html - port mcp runtime (main.py/core.py/config.py): nginx + health + FastMCP servers started from config.yml - docker: python:3.13-slim + nginx, expose 8000-8006 + 9000 (html portal) - drone: publish html (6007:9000) and MCP ports 8000-8006 - move mongo-ops docs to wiki/, add auth-server (api) and hexa (lib) - refresh lib site builds (lib/ prefix) and collect mcp bundles
82 lines
1.9 KiB
YAML
82 lines
1.9 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: build-and-deploy-docs
|
|
|
|
platform:
|
|
os: linux
|
|
arch: arm64
|
|
|
|
workspace:
|
|
path: /drone/src
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
host:
|
|
path: /var/run/docker.sock
|
|
|
|
steps:
|
|
# 🐳 Step 1: Build Docker image
|
|
- name: build-image
|
|
image: docker:24
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- echo "🔨 Building Docker image for aetos-docs..."
|
|
- docker build -t aetos/docs:latest .
|
|
|
|
# 📤 Step 2: Push image to private registry
|
|
- name: push-image
|
|
image: docker:24
|
|
environment:
|
|
REGISTRY_HOST:
|
|
from_secret: REGISTRY_HOST
|
|
REGISTRY_USER:
|
|
from_secret: REGISTRY_USER
|
|
REGISTRY_PASS:
|
|
from_secret: REGISTRY_PASS
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- echo "🔑 Logging into registry $REGISTRY_HOST ..."
|
|
- echo "$REGISTRY_PASS" | docker login $REGISTRY_HOST -u "$REGISTRY_USER" --password-stdin
|
|
- docker tag aetos/docs:latest $REGISTRY_HOST/aetos/docs:latest
|
|
- echo "📦 Pushing image to $REGISTRY_HOST..."
|
|
- docker push $REGISTRY_HOST/aetos/docs:latest
|
|
|
|
- name: stop-old
|
|
image: docker:24
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- echo "🛑 Stopping old container..."
|
|
- docker rm -f docs || true
|
|
|
|
- name: run-container
|
|
image: docker:24
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- echo "🚀 Starting aetos/docs:latest ..."
|
|
- |
|
|
docker run -d \
|
|
--name docs \
|
|
-p 6007:9000 \
|
|
-p 8000:8000 \
|
|
-p 8001:8001 \
|
|
-p 8002:8002 \
|
|
-p 8003:8003 \
|
|
-p 8004:8004 \
|
|
-p 8005:8005 \
|
|
-p 8006:8006 \
|
|
--restart always \
|
|
aetos/docs:latest
|
|
|
|
trigger:
|
|
event:
|
|
- push
|