Skip to content

feat: build lambda worker image on worker-bridge base + register artifact - #37

Merged
sebasnallar merged 1 commit into
mainfrom
feat/worker-image-publish
Aug 7, 2026
Merged

feat: build lambda worker image on worker-bridge base + register artifact#37
sebasnallar merged 1 commit into
mainfrom
feat/worker-image-publish

Conversation

@sebasnallar

Copy link
Copy Markdown
Contributor

What

Turns scopes-lambda into a real, publishable worker package.

Dockerfile — replaces the http-echo placeholder 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)
  • adds the cloud tooling the lambda steps call: aws + opentofu + gomplate (bash/jq/np/base64 ship in the base)
  • bakes the scope in and points the bridge at the lambda entrypoint + service-path via NP_* env
  • verified locally: builds clean, and worker/tofu 1.7.2/aws 2.15.57/gomplate 3.11.7/np all resolve

publish-image.yml — after the ECR push, register the image as a platform artifact:

  • new publish-artifact job needs: publish, consumes the build job's image_digest output
  • np artifact create --type oci_image --registry public.ecr.aws --repository nullplatform/scopes/lambda --digest <digest> --visible-to organization=*
  • installs the alpha-packages np CLI (same build the scopes repo uses)

.dockerignore — keep .git/.github/worker-base/node_modules out of the image.

Required repo config (CI won't publish the artifact without these)

  • Secret ARTIFACT_NP_API_KEY — np API key (wired into NULLPLATFORM_API_KEY)
  • Variable NP_ARTIFACT_NRN — owner NRN for the artifact

Note

public.ecr.aws/nullplatform/scopes/worker-bridge:1.0.0 is already pushed (multi-arch amd64+arm64).

…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.
Comment thread Dockerfile Dismissed
@sebasnallar
sebasnallar force-pushed the feat/worker-image-publish branch from 65f6999 to 7e57fa5 Compare August 7, 2026 19:11
@sebasnallar
sebasnallar merged commit 4f15889 into main Aug 7, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants