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

docs: ko does not works without -bare option for ECR #1322

Open
mattn opened this issue May 26, 2024 · 2 comments
Open

docs: ko does not works without -bare option for ECR #1322

mattn opened this issue May 26, 2024 · 2 comments

Comments

@mattn
Copy link
Contributor

mattn commented May 26, 2024

https://ko.build/advanced/lambda/

KO_DOCKER_REPO=[account-id].dkr.ecr.[region].amazonaws.com/my-repo
image=$(ko build ./cmd/app)

This does not work on my environment.

2024/05/27 00:11:15 Publishing XXXXXXXXXXXXXX.dkr.ecr.ap-northeast-3.amazonaws.com/ko-example/ko-example-yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy:latest
Error: failed to publish images: error publishing ko://ko-example: writing sbom: POST https://XXXXXXXXXXXXXX.dkr.ecr.ap-northeast-3.amazonaws.com/v2/ko-example/ko-example-yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy/blobs/uploads/: NAME_UNKNOWN: The repository with name 'ko-example/ko-example-yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy' does not exist in the registry with id 'XXXXXXXXXXXXXX'
@mattn
Copy link
Contributor Author

mattn commented May 26, 2024

As far as I did digging for this, AWS ECR does not work without --bare option.

Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant