As of August 20, 2024, GitHub only supports IPv4 connections. If all you need is to access GitHub and ghcr.io from your IPv6-only VPS, a kind person named Daniel Winzen has you covered. He has set up a public proxy server that can be used to access GitHub from an IPv6 network.
Go read https://danwin1210.de/github-ipv6-proxy.php and especially note the parts about ssl certificates, decryption and re-encryption of your traffic.
Once you have understood and made peace with all that, it is a simple matter of appending the following to your /etc/hosts files
# The following lines are a proxy to be used until github supports ipv6
# See: https://danwin1210.de/github-ipv6-proxy.php
2a01:4f8:c010:d56::2 github.com
2a01:4f8:c010:d56::3 api.github.com
2a01:4f8:c010:d56::4 codeload.github.com
2a01:4f8:c010:d56::5 objects.githubusercontent.com
2a01:4f8:c010:d56::6 ghcr.io
2a01:4f8:c010:d56::7 pkg.github.com npm.pkg.github.com maven.pkg.github.com nuget.pkg.github.com rubygems.pkg.github.com
Now, you can transparently clone git repositories from GitHub and pull apps like docker images from ghcr.io.
Go read https://danwin1210.de/github-ipv6-proxy.php and especially note the parts about ssl certificates, decryption and re-encryption of your traffic.
Once you have understood and made peace with all that, it is a simple matter of appending the following to your /etc/hosts files
# The following lines are a proxy to be used until github supports ipv6
# See: https://danwin1210.de/github-ipv6-proxy.php
2a01:4f8:c010:d56::2 github.com
2a01:4f8:c010:d56::3 api.github.com
2a01:4f8:c010:d56::4 codeload.github.com
2a01:4f8:c010:d56::5 objects.githubusercontent.com
2a01:4f8:c010:d56::6 ghcr.io
2a01:4f8:c010:d56::7 pkg.github.com npm.pkg.github.com maven.pkg.github.com nuget.pkg.github.com rubygems.pkg.github.com
Now, you can transparently clone git repositories from GitHub and pull apps like docker images from ghcr.io.