Create a classic personal access token in GitHub. Set an expiration date and enable the write:packages scope.
Note: Using a token generated by the gh cli is not sufficient.
Login to the ghcr.io registry. When asked for a password, paste the access token:
ko login -u <your_username> --password-stdin ghcr.ioBuild image and push to the regsitry:
make imagesThe pushed image name and tag are logged to the console.