BlueBuildB
BlueBuild2y ago
11 replies
krzychhoo

Github action cannot push the image to ghcr

Every time the action tries to build an image, it fails on pushing it to the registry. I haven't even done any customization to it yet.
[09:18:01 g.i/k/test-image:latest] => #35 ERROR: failed to push ghcr.io/krzychhoo/test-image:latest: unexpected status from POST request to https://ghcr.io/v2/krzychhoo/test-image/blobs/uploads/: 403 Forbidden
[09:18:01 g.i/k/test-image:latest] => ------
[09:18:01 g.i/k/test-image:latest] =>  > exporting to image:
[09:18:01 g.i/k/test-image:latest] => ------
[09:18:01 g.i/k/test-image:latest] => ERROR: failed to solve: failed to push ghcr.io/krzychhoo/test-image:latest: unexpected status from POST request to https://ghcr.io/v2/krzychhoo/test-image/blobs/uploads/: 403 Forbidden
[09:18:01 ERROR] => Failed:
  × Failed to build image ghcr.io/krzychhoo/test-image:latest

Error: Process completed with exit code 1.
Was this page helpful?