Skip to content

ci: push images to Uniphi ECR + ACR only (drop GCP, Perf/Beta/Prod ECR) - #345

Open
VaibhavPoojari-devops wants to merge 1 commit into
mainfrom
ci/registries-uniphi-acr-only
Open

VaibhavPoojari-devops wants to merge 1 commit into
mainfrom
ci/registries-uniphi-acr-only

Conversation

@VaibhavPoojari-devops

Copy link
Copy Markdown

Owner decision (28 Nov 2026): no pipeline pushes container images to GCP; AWS images go only to Uniphi ECR, with no pushes to Perf, Serverless Beta or Serverless Prod ECR. Azure keeps ACR.

What changes

Jenkinsfile (image transpiler)

Stage Before After
Build registry (PROD_IMAGE) GCP us-docker.pkg.dev/<GCP_PROJECT_ID>/e6-engine/transpiler: per-arch push by digest + multi-arch tag Uniphi ECR 298655976287.dkr.ecr.us-east-1.amazonaws.com/transpiler: same per-arch push by digest + imagetools create multi-arch tag
Perf ECR 670514002493/transpiler:latest and :<tag> skopeo copy (no --all, so flattened to one arch) removed
Uniphi ECR skopeo copy from GCP (no --all, so flattened) the multi-arch manifest is now built directly in Uniphi, with no copy
ACR e6labs.azurecr.io/transpiler:<tag> skopeo copy (no --all, flattened) skopeo copy --all from Uniphi, so the full multi-arch list is copied (same path)
  • Removed: the GCP_PROJECT_ID and JENKINS_GCP_SA credentials, the gcloud auth/configure-docker steps, GCP_DOCKER_TOKEN and every us-docker.pkg.dev login.
  • Removed: the Perf ASSUMED_ROLE_ARN assume-role (which exported AWS_* env for every later step), DEV_IMAGE, ECR_TOKEN, and the Serverless Beta/Prod assume-roles and tokens (SERVERLESS_*_ROLE_ARN). The Beta/Prod tokens were fetched but never used for a push.
  • Uniphi auth uses the agent's ambient IRSA identity (Jenkins runs in Uniphi): aws ecr get-login-password in "Cloud Authentication", the same pattern the file already used for its Uniphi push. With no assume-role left in the file, nothing can override that identity.

.github/workflows/ci-transpiler.yml: the main-ECR, GCR and Serverless Beta/Prod targets are removed (env vars, assume-role/login steps, commented add lines, summary "skipped" lines). They were wired but always skipped because their secrets are not shared with this repo. Uniphi ECR and ACR (e6labs.azurecr.io/transpiler) stay as the required targets, and the header comment says so.

Consumers

  • Anything that pulled transpiler from GCP e6-engine/transpiler or from Perf ECR (including Perf transpiler:latest, which Jenkins moved on every build) stops getting new tags. It should pull 298655976287.dkr.ecr.us-east-1.amazonaws.com/transpiler:<tag> (Uniphi's registry policy allows the Perf, Beta, Prod, Pilot and v1 Prod accounts) or ACR. Uniphi transpiler:latest is moved by the GitHub Actions workflow, not by Jenkins.
  • Uniphi and ACR tags from Jenkins builds are now true multi-arch. Before, they were whichever single arch skopeo picked.

Prerequisites

  • The Uniphi repo transpiler exists. No new Jenkins credential or IAM change is needed. The Jenkins IRSA role already holds ecr:PutImage etc. on *.
  • Jenkins credentials no longer referenced: GCP_PROJECT_ID, JENKINS_GCP_SA, ASSUMED_ROLE_ARN, SERVERLESS_BETA_ROLE_ARN, SERVERLESS_PROD_ROLE_ARN. GitHub secrets no longer referenced by ci-transpiler.yml: AWS_ACCOUNT_ID, SERVERLESS_*_AWS_ACCOUNT_ID, GCR_PUSH_SA, variable GCR_PROJECT_ID.
  • The Jenkinsfile was not validated against the live Jenkins instance. I checked by hand that braces, parentheses and quotes balance.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant