-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Infra: Upload images to a public AWS ECR #242
Comments
@Haarolean Have there been any updates on this recently? Thanks. |
@Haarolean Just to reconfirm: this is the correct AWS Public ECR repo — https://gallery.ecr.aws/s0v8j8q9/kafbat/kafka-ui, right? Can the |
@yermulnik yeah it's the right one. The id can't be dropped (unless you know something we don't :) ), the first deploy should be performed once #586 is merged and we'll update the description soon |
Thank you. |
FWIW: https://aws.amazon.com/blogs/aws/amazon-ecr-public-a-new-public-container-registry/ ps: hope this helps as I haven't done this myself before 🤷🏻 |
|
Absolutely. Appreciate it 👍🏻 |
@Haarolean Given the number of tasks for
Did I get it right, that you decided to not go with custom registry alias for a reason? Also is the |
Yeah, once #72 is merged in.
Nope. I believe we didn't get the alias approved or something. I'll take a look into that.
Yeah, that's right. It always points to the latest commit in main. |
🥳 Yay, can see Any updates on custom registry alias in place of random id? Thanks. |
@yermulnik dunno, they're quite stubborn: |
That's odd 😕 Any chance you can create an AWS support request to see why that's rejected? |
I also reached out to AWS Support on this case and here's what they provided:
Maybe it is worth of requesting |
thanks for doing this! Indeed we had a same thought today, applied as |
If you'll be pushing images to this registry for non- |
sorry you're right, we've applied |
JFYI:
|
@yermulnik thank you! |
Marvelous. Thanks! 👍🏻 |
You probably need to drop now redundant ps: I'm assuming that |
Please let me know if that helps. |
You also probably can simplify code in docker publish workflow by replacing - name: define env vars
run: |
if [ ${{ matrix.registry }} == 'ecr' ]; then
echo "REGISTRY=${{ vars.ECR_REGISTRY }}" >> $GITHUB_ENV
echo "REPOSITORY=${{ github.repository }}" >> $GITHUB_ENV
else
echo "REGISTRY=${{ matrix.registry }}" >> $GITHUB_ENV
echo "REPOSITORY=${{ github.repository }}" >> $GITHUB_ENV
fi |
it was set to
|
Ah, I see. Please try to set elif [ ${{ matrix.registry }} == 'ecr' ]; then
echo "REGISTRY=${{ vars.ECR_REGISTRY }}" >> $GITHUB_ENV
echo "REPOSITORY=${{ github.repository }}" >> $GITHUB_ENV with elif [ ${{ matrix.registry }} == 'ecr' ]; then
echo "REGISTRY=${{ vars.ECR_REGISTRY }}" >> $GITHUB_ENV
echo "REPOSITORY=$(basename ${{ github.repository }})" >> $GITHUB_ENV The gist of the change: |
@yermulnik wanna raise a PR for that? |
Do you mean I should raise or you just want to allow me to contribute via PR? |
That's merely a contribution suggestion :) I haven't tried anything since your last comment yet |
Ref: kafbat#242 Improve publishig to Public AWS ECR by trimming repo owner from repo name so that Public ERC repo url has no duplcates. Before: `public.ecr.aws/kafbat/kafbat/kafka-ui` After: `public.ecr.aws/kafbat/kafka-ui`
No problem. Let try this out: #794 (though it's still you to test the changes I guess 🤷🏻) |
@Haarolean Any chance for #794 to get rolling? =) |
@yermulnik
huh |
@yermulnik indeed! This was the culprit. |
pushed both past releases to https://gallery.ecr.aws/kafbat/kafka-ui |
Yay 🥳 Thanks a bunch! Great collaboration experience ❤ |
We currently publish to github (and mirror to DockerHub), but I'll raise an issue and discuss the possibility of uploading the images to a public ECR as well.
Originally posted by @Haarolean in #23 (reply in thread)
TODO:
The text was updated successfully, but these errors were encountered: