Repository navigation
Conversation
Nothing in this repo publishes the chip-router image: consumers pin
local-cre-chip-router:vX.Y.Z, and chainlink CRE setups either clone and
build this repo at a pinned commit or pull from {{.SDLC_ECR}} — the QA
account ECR registry that parrot-release.yml already publishes to via
OIDC (chainlink's cre-local-env-tests.yaml resolves SDLC_AWS_ECR to that
same registry).
- chiprouter-release.yml: on a framework/components/chiprouter/v* tag
push (same tag flow as release-go-module.yml), and on workflow_dispatch
with a version input (checks out that module tag; backfill for already
tagged versions such as v1.0.5), build the image and push it to
$QA_ECR/local-cre-chip-router:<version> and :latest, reusing the
existing AWS_OIDC_PUBLISH_ECR_ROLE_ARN OIDC role, AWS_REGION and
QA_AWS_ACCOUNT_NUMBER secrets from the integration environment — the
parrot-release.yml pattern, no new credentials.
- The same workflow also builds the image (no secrets, no push) on PRs
touching framework/components/chiprouter/**, so image breakage fails
CI before merge instead of surfacing at the next tag.
- Dockerfile: pin the builder stage to $BUILDPLATFORM so buildx
multi-arch builds cross-compile via GOARCH instead of emulating the
builder; the distroless final stage only COPYs, so no QEMU is needed.
Plain docker build behavior is unchanged.
This branch has not been deployed
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.
Problem
The chip-router fix (#2877) is on
main, but nothing in this repo publishes the router Docker image:local-cre-chip-router:vX.Y.Z; chainlink CRE setups get it either by cloning this repo at a pinned commit and building locally (build_configin theirsetup.toml), or by pulling from{{.SDLC_ECR}}/local-cre-chip-router:vX.Y.Z(pull_config).cre-local-env-tests.yamlresolvesSDLC_AWS_ECRto the QA account ECR registry — the same registry this repo'sparrot-release.ymlalready publishes to via AWS OIDC.framework/components/chiprouteris in no test/lint matrix with a Docker build, so image breakage only surfaces when someone tags or builds locally (noted in the final review of fix(chip-router): per-event results and write-service parity for Publish/PublishBatch #2877).What this adds
.github/workflows/chiprouter-release.yml— theparrot-release.ymlpattern applied to the chiprouter module:framework/components/chiprouter/v*<QA_ECR>/local-cre-chip-router:vX.Y.Zand:latestworkflow_dispatch(version input)v1.0.5)framework/components/chiprouter/**AWS_OIDC_PUBLISH_ECR_ROLE_ARN,AWS_REGION,QA_AWS_ACCOUNT_NUMBERfrom theintegrationenvironment — no new credentials.release-go-module.yml(which independently creates the GitHub release + binaries), so "tag the module" becomes the single release action: Go module, GitHub release, and Docker image together.local-cre-chip-router:vX.Y.Z.framework/components/chiprouter/Dockerfile— one line:FROM --platform=$BUILDPLATFORM golang:1.26.6 AS builder.linux/amd64,linux/arm64) run the builder natively and cross-compile viaGOARCH, and the distroless final stage onlyCOPYs — so no QEMU and both architectures build fast.docker buildbehavior is unchanged (when target = host platform,$BUILDPLATFORMis the host platform too).Verification
actionlint(the lintervalidate-gha-workflows.ymlruns on every PR): clean.docker buildx build --platform linux/amd64,linux/arm64 -f framework/components/chiprouter/Dockerfile framework/components/chiprouter— the exact command both jobs run — builds successfully on an arm64 host with no emulation.framework/components/chiprouter/v1.0.5→v1.0.5; dispatch input validated againstvX.Y.Z).Open questions / follow-ups
local-cre-chip-routerexist in the QA account, and doesAWS_OIDC_PUBLISH_ECR_ROLE_ARN's role have push permissions on it? (Parrot's role pushes to<QA_ECR>/parrot; if the role is repo-scoped, it needslocal-cre-chip-routeradded, or a separate role secret.)v1.0.5backfill after this merges, and do downstream pins (chainlinksetup.toml, data-feeds CI) move to the published image then?v1.0.1was amd64-only — consumers on amd64 see no difference.