-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strip "ghcr.io/" from prefix for docker images in release channel #5189
Conversation
Strip "ghcr.io/" from prefix for docker images in release channel
@juliagmt-google is attempting to deploy a commit to the Meta Open Source Team on Vercel. A member of the Team first needs to authorize it. |
@@ -29,7 +29,7 @@ def generate_docker_matrix(channel: str) -> Dict[str, List[Dict[str, str]]]: | |||
prefix = "ghcr.io/pytorch/pytorch" | |||
docker_image_version = "" | |||
if channel == "release": | |||
docker_image_version = f"{prefix}:{generate_binary_build_matrix.CURRENT_STABLE_VERSION}" | |||
docker_image_version = f"{prefix.replace("ghcr.io/", "")}:{generate_binary_build_matrix.CURRENT_STABLE_VERSION}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we probably want to pass another flag. Something like generate_dockerhub_images
since we still want to validate ghcr.io release images before uploading to dockerhub.
docker without `ghcr.io/` prefix.
generate_docker_release_matrix.py --channel release --generate_dockerhub_images |
Looks better, we also need to add a new input here: |
Pass generate_dockerhub_images flag as an input
Test using release channel with generate_dockerhub_images==true
Strip "ghcr.io/" from prefix for docker images in release channel