Stop attempting to pull base python image when pulling commit hash (#17231)
Stop attempting to pull base python image when pulling commit hash (#17231)

When we publish latest images, we also publish Python base images
for them, so that we know where the base images are taken from.
This is not happening when we build "per-build" images - we only
publish the resulting images rather than base python images because
we do not need the base python images. This change was implemented
after ghcr.io move and it was not reflected in --github-id
switch handling, so ./breeze command with --github-id specified,
failed trying to pull base python image with the same ID.

This PR makes sure that we only pull base python image when we
build/pull latest images, not the per-build ones.
apache/incubator-airflow,mistercrunch/airflow,apache/airflow,danielvdende/incubator-airflow,apache/incubator-airflow,nathanielvarona/airflow,cfei18/incubator-airflow,bolkedebruin/airflow,mistercrunch/airflow,cfei18/incubator-airflow,apache/airflow,cfei18/incubator-airflow,dhuang/incubator-airflow,apache/airflow,bolkedebruin/airflow,apache/incubator-airflow,lyft/incubator-airflow,apache/airflow,mistercrunch/airflow,lyft/incubator-airflow,lyft/incubator-airflow,nathanielvarona/airflow,danielvdende/incubator-airflow,Acehaidrey/incubator-airflow,apache/incubator-airflow,mistercrunch/airflow,nathanielvarona/airflow,Acehaidrey/incubator-airflow,danielvdende/incubator-airflow,dhuang/incubator-airflow,lyft/incubator-airflow,apache/airflow,danielvdende/incubator-airflow,dhuang/incubator-airflow,cfei18/incubator-airflow,bolkedebruin/airflow,Acehaidrey/incubator-airflow,nathanielvarona/airflow,bolkedebruin/airflow,nathanielvarona/airflow,Acehaidrey/incubator-airflow,danielvdende/incubator-airflow,cfei18/incubator-airflow,Acehaidrey/incubator-airflow,danielvdende/incubator-airflow,nathanielvarona/airflow,Acehaidrey/incubator-airflow,bolkedebruin/airflow,cfei18/incubator-airflow,apache/airflow,dhuang/incubator-airflow