Skip to content

release: publish v0.1.0a10 #157

release: publish v0.1.0a10

release: publish v0.1.0a10 #157

Workflow file for this run

name: Docker
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "Dockerfile"
- "compose.yaml"
- ".dockerignore"
- "pyproject.toml"
- "src/**"
- ".github/workflows/docker.yml"
pull_request:
paths:
- "Dockerfile"
- "compose.yaml"
- ".dockerignore"
- "pyproject.toml"
- "src/**"
- ".github/workflows/docker.yml"
permissions:
contents: read
jobs:
core-image:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build core image
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
target: core
load: true
tags: codecortex:test-core
cache-from: type=gha,scope=core
cache-to: type=gha,mode=max,scope=core
- name: CLI smoke
run: |
docker run --rm codecortex:test-core --help
docker run --rm codecortex:test-core version
- name: Runtime smoke
run: |
docker run --rm -v "$PWD/examples/demo_project:/workspace" --tmpfs /workspace/.codecortex:uid=10001,gid=10001 codecortex:test-core doctor --path /workspace
docker run --rm -v "$PWD/examples/demo_project:/workspace" --tmpfs /workspace/.codecortex:uid=10001,gid=10001 codecortex:test-core index --path /workspace
full-image:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build full image
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
target: full
load: true
tags: codecortex:test-full
cache-from: type=gha,scope=full
cache-to: type=gha,mode=max,scope=full
- name: Backend smoke
run: |
docker run --rm codecortex:test-full backend list
docker run --rm -v "$PWD/examples/demo_project:/workspace" --tmpfs /workspace/.codecortex:uid=10001,gid=10001 codecortex:test-full backend doctor --path /workspace
- name: MCP discovery smoke
run: |
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' | docker run -i --rm -v "$PWD/examples/demo_project:/workspace" --tmpfs /workspace/.codecortex:uid=10001,gid=10001 codecortex:test-full mcp --path /workspace | tee /tmp/mcp.out
grep -q 'cortex_repository_map' /tmp/mcp.out
grep -q 'cortex_rename_symbol' /tmp/mcp.out