Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gha: add ECR as registry to push images to #289

Merged
merged 1 commit into from
Mar 20, 2025
Merged

gha: add ECR as registry to push images to #289

merged 1 commit into from
Mar 20, 2025

Conversation

ivotron
Copy link
Member

@ivotron ivotron commented Mar 19, 2025

Adds an ECR registry as another publishing target for images. The AWS IAM role that is assumed as part of the execution of this workflow contains the right permissions to allow the login and push operation to work as it should.

part of https://redpandadata.atlassian.net/browse/DEVPROD-2735

@ivotron ivotron force-pushed the add-ecr-repo branch 6 times, most recently from 11d1c7a to 05234ae Compare March 20, 2025 05:46
@ivotron
Copy link
Member Author

ivotron commented Mar 20, 2025

These changes were tested from a DNM change in 11d1c7a (that was reverted). The resulting run of the workflow is in https://github.com/redpanda-data/kminion/actions/runs/13961649257, with an image successfully pushed to https://gallery.ecr.aws/l9j0i2e0/kminion (tag pr-289).

@ivotron ivotron marked this pull request as ready for review March 20, 2025 05:54
@ivotron ivotron requested review from gousteris and weeco March 20, 2025 05:54
@@ -47,6 +48,14 @@ jobs:
with:
username: ${{ env.DOCKERHUB_USER }}
password: ${{ env.DOCKERHUB_TOKEN }}
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
Copy link
Member Author

Choose a reason for hiding this comment

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

this has to be us-east-1 as this is the only region that supports public ECR repos

@ivotron ivotron requested a review from andrewhsu March 20, 2025 15:55
Copy link
Member

@andrewhsu andrewhsu left a comment

Choose a reason for hiding this comment

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

LGTM

just a nit

@ivotron ivotron merged commit 0fc44b7 into master Mar 20, 2025
1 check passed
@ivotron ivotron deleted the add-ecr-repo branch March 20, 2025 19:12
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