I am using buildpack to build a docker container, and I want to publish it to a remote container registry.
I am using this command:
pack build myapp --builder heroku/buildpacks:20 --publish
However, this yields the following error:
ERROR: failed to : ensure registry read access to myapp
ERROR: failed to build: executing lifecycle: failed with status code: 1
How can I specify the remote registry URL and credentials? I tried running docker login before running my command but received the same error. The documentation only says the following:
--publish Publish to registry