-
Notifications
You must be signed in to change notification settings - Fork 18
feat(ci): allow for supporting multi-arch images to be built and shipped #787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,13 @@ | ||
| FROM golang:1.25 AS builder | ||
| WORKDIR /workspace | ||
| COPY go.mod go.sum ./ | ||
| RUN go mod download | ||
| COPY . . | ||
| RUN --mount=type=cache,target=/root/.cache/go-build \ | ||
| CGO_ENABLED=0 go build -o bin/ghproxy ./cmd/ghproxy | ||
|
|
||
| FROM gcr.io/distroless/static:nonroot | ||
| WORKDIR / | ||
| COPY bin/ghproxy . | ||
| COPY --from=builder /workspace/bin/ghproxy . | ||
| USER 65532:65532 | ||
| ENTRYPOINT ["/ghproxy"] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,13 @@ | ||
| FROM golang:1.25 AS builder | ||
| WORKDIR /workspace | ||
| COPY go.mod go.sum ./ | ||
| RUN go mod download | ||
| COPY . . | ||
| RUN --mount=type=cache,target=/root/.cache/go-build \ | ||
| CGO_ENABLED=0 go build -o bin/kelos-spawner ./cmd/kelos-spawner | ||
|
|
||
| FROM gcr.io/distroless/static:nonroot | ||
| WORKDIR / | ||
| COPY bin/kelos-spawner . | ||
| COPY --from=builder /workspace/bin/kelos-spawner . | ||
| USER 65532:65532 | ||
| ENTRYPOINT ["/kelos-spawner"] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,40 +1,12 @@ | ||
| FROM ubuntu:24.04 | ||
|
|
||
| ARG GO_VERSION=1.25.0 | ||
|
|
||
| RUN apt-get update && apt-get install -y \ | ||
| make \ | ||
| curl \ | ||
| ca-certificates \ | ||
| git \ | ||
| && curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ | ||
| && apt-get install -y nodejs \ | ||
| && curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \ | ||
| -o /usr/share/keyrings/githubcli-archive-keyring.gpg \ | ||
| && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \ | ||
| > /etc/apt/sources.list.d/github-cli.list \ | ||
| && apt-get update \ | ||
| && apt-get install -y gh \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN ARCH=$(dpkg --print-architecture) \ | ||
| && TARBALL="go${GO_VERSION}.linux-${ARCH}.tar.gz" \ | ||
| && curl -fsSL -o "/tmp/${TARBALL}" "https://dl.google.com/go/${TARBALL}" \ | ||
| && curl -fsSL -o "/tmp/${TARBALL}.sha256" "https://dl.google.com/go/${TARBALL}.sha256" \ | ||
| && echo "$(cat /tmp/${TARBALL}.sha256) /tmp/${TARBALL}" | sha256sum -c - \ | ||
| && tar -C /usr/local -xzf "/tmp/${TARBALL}" \ | ||
| && rm "/tmp/${TARBALL}" "/tmp/${TARBALL}.sha256" | ||
|
|
||
| ENV PATH="/usr/local/go/bin:${PATH}" | ||
| ARG BASE_IMAGE=agent-base:latest | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Base image uses mutable Prompt for AI agents |
||
| FROM ${BASE_IMAGE} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Removal of the Prompt for AI agents |
||
|
|
||
| ARG CODEX_VERSION=0.117.0 | ||
| RUN npm install -g @openai/codex@${CODEX_VERSION} | ||
|
|
||
| COPY codex/kelos_entrypoint.sh /kelos_entrypoint.sh | ||
| RUN chmod +x /kelos_entrypoint.sh | ||
|
|
||
| COPY bin/kelos-capture /kelos/kelos-capture | ||
|
|
||
| RUN useradd -u 61100 -m -s /bin/bash agent | ||
| RUN mkdir -p /home/agent/.codex && chown -R agent:agent /home/agent | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Per-ref concurrency allows tag release workflows to run in parallel, but the workflow still updates shared
latesttags. Two tag releases close together can race and overwritelatestnondeterministically. Consider restoring a shared concurrency group for tag releases or otherwise serializingpush-latest.Prompt for AI agents