ko-build / ko

Build and deploy Go applications
https://ko.build
Apache License 2.0
7.54k stars 396 forks source link

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

Open mattn opened 3 months ago

mattn commented 3 months ago

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 commented 3 months ago

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

github-actions[bot] commented 3 weeks ago

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.