GitHub Container Registry
Page content
TL;DR
- Get an acccces token (Personal Access Token)
- https://github.com/settings/tokens/new
- The only permission required in this post is
write:packages
. - From GitHub point of view, a container in Container Registry is a package.
- In this post
ghp_abcdefghijklMNOpqrstuvwxyz0123456789
.
- Login to the GitHub Container registry
ghcr.io
.export CR_PAT=ghp_abcdefghijklMNOpqrstuvwxyz0123456789 echo $CR_PAT | docker login ghcr.io -u atlex00 --password-stdin
docker tag {{ my_local_image_id }} ghcr.io/atlex00/my-test
docker push ghcr.io/atlex00/my-test
How to delete
https://docs.github.com/en/packages/learn-github-packages/deleting-and-restoring-a-package