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

ci/build-images: fix push to ECR #1315

Merged
merged 2 commits into from
Mar 11, 2025
Merged

ci/build-images: fix push to ECR #1315

merged 2 commits into from
Mar 11, 2025

Conversation

bayandin
Copy link
Member

@bayandin bayandin commented Mar 11, 2025

Push to ECR started to fail after #1312 changes:

Copy neondatabase/neonvm-controller:testrelease-20250311.1c7bb48.13791913752 to dev ECR
ERROR: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

Spotted in link

It tries to push images to <ECR>/neondatabase/<IMAGE_NAME> instead of <ECR>/<IMAGE_NAME>

@bayandin bayandin force-pushed the bayandin/fix-ecr-push branch from c9cd39d to 48cb70a Compare March 11, 2025 17:57
@bayandin bayandin marked this pull request as ready for review March 11, 2025 18:03
@bayandin bayandin requested review from sharnoff and a team March 11, 2025 18:04
Copy link
Member

@sharnoff sharnoff left a comment

Choose a reason for hiding this comment

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

Oh, whoops - thanks! Now that you mention it, I remember originally using the hard-coded names instead of env vars exactly because of this issue, in #1259 🤦

I like your solution better — maybe worth commenting what's going on with removing the neondatabase/ prefix from $image? The prefix removal syntax in bash is one of those small things I often forget what it means 😅

@bayandin
Copy link
Member Author

I like your solution better — maybe worth commenting what's going on with removing the neondatabase/ prefix from $image?

Sure will add a comment!

Also, probably in #1283 I'm going to drop neondatabase/ part from the image name to start using GHCR as the default registry.

@bayandin bayandin force-pushed the bayandin/fix-ecr-push branch from 48cb70a to f5809a5 Compare March 11, 2025 20:33
@bayandin bayandin enabled auto-merge (squash) March 11, 2025 20:38
@bayandin bayandin merged commit 515ec89 into main Mar 11, 2025
33 checks passed
@bayandin bayandin deleted the bayandin/fix-ecr-push branch March 11, 2025 20:54
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