Skip to content

feat(docker): tag ECR images with latest on release#188

Merged
debanjan97 merged 1 commit intomainfrom
debanjan/pro-5596-tag-ecr-latest-on-release
Apr 17, 2026
Merged

feat(docker): tag ECR images with latest on release#188
debanjan97 merged 1 commit intomainfrom
debanjan/pro-5596-tag-ecr-latest-on-release

Conversation

@debanjan97
Copy link
Copy Markdown
Member

@debanjan97 debanjan97 commented Apr 17, 2026

Why

CI pipelines that consume the code-server Docker image need to always pull the most recent release. Without a latest tag, every pipeline must be updated with the exact version tag on each release. Tagging with latest lets CI jobs use a stable reference that always points to the newest release.

Summary

  • Adds a latest tag to the three ECR Docker metadata steps (docker meta, docker arm64 meta, docker amd64 meta) in the docker-metadata-ecr job
  • The tag is conditionally enabled only when github.event_name == 'release', so PR and manual dispatch builds are unaffected
  • The existing docker-manifest-ecr job automatically creates a multi-arch latest manifest from the arch-specific latest-arm64 and latest-amd64 tags

Test plan

  • Open this PR — verify the PR build produces only pr-<N> tags (no latest)
  • Publish a release — confirm ECR image has both v<VERSION> and latest tags
  • Verify docker pull 422074288268.dkr.ecr.us-east-1.amazonaws.com/rudderstack/profiles-code-server:latest returns the multi-arch image

Resolves PRO-5596

🤖 Generated with Claude Code

Add a `latest` tag to ECR Docker image metadata steps so that release
builds produce both versioned and `latest` tags. The tag is gated behind
`enable=${{ github.event_name == 'release' }}` so PR and manual builds
are unaffected.

PRO-5596

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Scanned-by: gitleaks 8.29.0
@debanjan97 debanjan97 requested a review from chandumlg April 17, 2026 12:12
@github-actions
Copy link
Copy Markdown
Contributor

Docker Preview Images Ready

Preview Docker images have been built for this PR:

ECR (internal):

docker pull 422074288268.dkr.ecr.us-east-1.amazonaws.com/rudderstack/profiles-code-server:pr-188

Image Details:

  • Tag: pr-188
  • Platforms: linux/amd64, linux/arm64

Test the image:

docker run --rm -p 8080:8080 422074288268.dkr.ecr.us-east-1.amazonaws.com/rudderstack/profiles-code-server:pr-188

Note: These preview images will be overwritten on subsequent pushes to this PR.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@debanjan97 debanjan97 merged commit 74b92a6 into main Apr 17, 2026
31 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.

3 participants