ci(codeapi): publish GHCR images#3
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What This Adds
This PR adds a GitHub Actions workflow that publishes the CodeAPI runtime images to GHCR when
mainis updated, with manual dispatch available as well.How It Works
ghcr.io/uzh-bf/code-interpreter/*.github.shaandmain.GITHUB_TOKENwithpackages: write.linux/amd64,linux/arm64.linux/amd64for the dedicated KVM pool.Branch Coverage
main1324330.github/workflows/build-codeapi-images.ymladded, 88 linesReview Focus
productiontargets; sandbox-runner uses thesandbox-runnertarget.codeapi-package-initis single-stage, so its emptytargetmatrix value is intentional.DOCKER_AUTH.Verification
Current head:
ruby -e 'require "yaml"; YAML.load_file(".github/workflows/build-codeapi-images.yml"); puts "yaml ok"'-> passednpm exec --package prettier@2.4.1 -- prettier --check .github/workflows/build-codeapi-images.yml-> passeddocker buildx build --check-> passed for all seven Dockerfiles/targetsopencode-go/glm-5.2 --variant maxreview -> no blockers; accepted simplification/traceability findings28380177191-> API Unit Tests passed, Service Unit Tests passedNot run:
mainbefore it can publish the first images.Security / Privacy
GITHUB_TOKEN.DOCKER_AUTHafter the first push.Blocking Before Merge
None beyond normal workflow review.
Follow-Up After Merge
Build CodeAPI Imagesworkflow run onmain.DOCKER_AUTH.targetRevision.