<#7575 ci: build and push flytecopilot image> Pull...
# flyte-github
a
#7575 ci: build and push flytecopilot image Pull request opened by pingsutw Tracking issue Closes ENG26-776 Why are the changes needed? The flytecopilot image is not built by any CI in this repo. The root
Dockerfile
only builds the
flyte
single binary, so the copilot init/sidecar container — which flyteplugins invokes as
/bin/flyte-copilot
(
flytek8s.CopilotCommandArgs
) — has to be built and pushed manually whenever copilot code changes. That's how it recently drifted out of sync with the rest of the build (e.g. copilot fixes in #7534 / #7490 not reaching deployed clusters until someone hand-built
<http://ghcr.io/flyteorg/flyte:flytecopilot-v2-<sha>
)|ghcr.io/flyteorg/flyte:flytecopilot-v2-<sha>`)>. What changes were proposed in this pull request? •
Dockerfile.flytecopilot
— builds
./flytecopilot
to
/bin/flyte-copilot
on
debian:bookworm-slim
, mirroring the main image's builder pattern. The binary path matches what flyteplugins expects so no plugin/config change is needed. •
.github/workflows/flytecopilot.yml
— builds and pushes
ghcr.io/<owner>/flytecopilot
on push to
main
and manual dispatch (tags:
nightly
on main + long commit SHA). Uses the same Depot OIDC + GHCR (
FLYTE_BOT_PAT
) setup and fork-safe
PUSH_IMAGES
gating as `flyte-binary-v2.yml`; PRs build but only push when labeled
test-push-image
from a base-repo branch. Image name follows this repo's
ghcr.io/<owner>/<component>
convention and the
flyteorg/flytecopilot
default in
flyteplugins/.../flytek8s/config/config.go
. If the cloud submodule deploy expects a different registry/name, that's a one-line change to the
images:
field. How was this patch tested? •
docker build -f Dockerfile.flytecopilot .
succeeds (linux/amd64 + arm64). •
docker run --entrypoint /bin/flyte-copilot <image> --help
runs and shows the
download
/
sidecar
subcommands, confirming the binary is at the path flyteplugins calls. Labels • added Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. flyteorg/flyte