feat: build lambda worker image on worker-bridge base + register artifact - #37
Merged
Conversation
…fact - Dockerfile: replace the http-echo placeholder with the real worker image — FROM public.ecr.aws/nullplatform/scopes/worker-bridge:1.0.0 (the lean gRPC worker bridge), add the cloud tooling the lambda steps need (aws, opentofu, gomplate), bake the scope in and point the bridge at the lambda entrypoint + service-path via NP_* env. Verified it builds and tofu/aws/gomplate/np/worker all resolve. - publish-image.yml: after the ECR push, register the pushed image as an oci_image platform artifact pinned by digest, visible-to organization=*, using the alpha-packages np CLI. Digest comes from the build job output. - .dockerignore: keep .git/.github/worker-base/node_modules out of the image.
sebasnallar
force-pushed
the
feat/worker-image-publish
branch
from
August 7, 2026 19:11
65f6999 to
7e57fa5
Compare
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
Turns scopes-lambda into a real, publishable worker package.
Dockerfile — replaces the
http-echoplaceholder with the actual worker image:FROM public.ecr.aws/nullplatform/scopes/worker-bridge:1.0.0(the lean gRPC worker bridge, ex-plugin-base-worker)aws+opentofu+gomplate(bash/jq/np/base64ship in the base)NP_*envworker/tofu 1.7.2/aws 2.15.57/gomplate 3.11.7/npall resolvepublish-image.yml — after the ECR push, register the image as a platform artifact:
publish-artifactjobneeds: publish, consumes the build job'simage_digestoutputnp artifact create --type oci_image --registry public.ecr.aws --repository nullplatform/scopes/lambda --digest <digest> --visible-to organization=*alpha-packagesnp CLI (same build the scopes repo uses).dockerignore — keep
.git/.github/worker-base/node_modulesout of the image.Required repo config (CI won't publish the artifact without these)
ARTIFACT_NP_API_KEY— np API key (wired intoNULLPLATFORM_API_KEY)NP_ARTIFACT_NRN— owner NRN for the artifactNote
public.ecr.aws/nullplatform/scopes/worker-bridge:1.0.0is already pushed (multi-arch amd64+arm64).