Skip to content

Commit d1bcfc9

Browse files
barckcodeclaude
andcommitted
Add Agent Crew Dockerfile and CI pipeline
Multi-arch Docker image (amd64/arm64) based on agent_crew_agent with chromium, agent-browser, and Go 1.25.0. Pipeline triggers only on changes to agentcrew/ directory. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d557de0 commit d1bcfc9

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.github/workflows/agentcrew.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Agent Crew Image
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'agentcrew/**'
8+
pull_request:
9+
branches: [main]
10+
paths:
11+
- 'agentcrew/**'
12+
13+
permissions:
14+
contents: read
15+
packages: write
16+
17+
jobs:
18+
build:
19+
name: Build and Push
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v3
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
30+
- name: Log in to GitHub Container Registry
31+
uses: docker/login-action@v3
32+
with:
33+
registry: ghcr.io
34+
username: ${{ github.actor }}
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Build and push
38+
uses: docker/build-push-action@v6
39+
with:
40+
context: agentcrew
41+
platforms: linux/amd64,linux/arm64
42+
push: ${{ github.event_name == 'push' }}
43+
tags: |
44+
ghcr.io/${{ github.repository }}/agentcrew:latest
45+
ghcr.io/${{ github.repository }}/agentcrew:${{ github.sha }}

agentcrew/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM ghcr.io/helmcode/agent_crew_agent:0.3.7
2+
3+
ARG GO_VERSION=1.25.0
4+
5+
RUN apt-get update && apt-get install -y --no-install-recommends \
6+
chromium \
7+
&& rm -rf /var/lib/apt/lists/* \
8+
&& npm install -g agent-browser
9+
10+
ARG TARGETARCH
11+
RUN curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-${TARGETARCH}.tar.gz" -o /tmp/go.tar.gz \
12+
&& tar -C /usr/local -xzf /tmp/go.tar.gz \
13+
&& rm /tmp/go.tar.gz
14+
15+
ENV PATH="/usr/local/go/bin:${PATH}"
16+
ENV GOPATH="/root/go"
17+
ENV PATH="${GOPATH}/bin:${PATH}"

0 commit comments

Comments
 (0)