ci: add cursor agent to Docker image pipeline (#3051)

Adds cursor.Dockerfile and includes cursor in the docker.yml matrix
so nightly builds produce ghcr.io/openrouterteam/spawn-cursor:latest.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ahmed Abushagur 2026-03-26 23:41:27 -07:00 committed by GitHub
parent ccee04f53d
commit dcb740ec68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 1 deletions

View file

@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
agent: [claude, codex, openclaw, opencode, kilocode, zeroclaw, hermes, junie]
agent: [claude, codex, cursor, openclaw, opencode, kilocode, zeroclaw, hermes, junie]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

View file

@ -0,0 +1,21 @@
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
# Base packages
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
curl git ca-certificates unzip && \
rm -rf /var/lib/apt/lists/*
# Cursor CLI
RUN curl -fsSL https://cursor.com/install | bash || \
[ -f /root/.local/bin/cursor ]
# Ensure tools are on PATH for all shells
RUN for rc in /root/.bashrc /root/.zshrc; do \
grep -q '.local/bin' "$rc" 2>/dev/null || \
echo 'export PATH="$HOME/.local/bin:$PATH"' >> "$rc"; \
done
CMD ["/bin/sleep", "inf"]