You can select specific tasks to run with the -c option in bitbake. To build and push an image without generating the SD card images, you can do

bitbake rpi-basic-image -c image_ostreepush
This will leave one artefact behind: a bzipped copy of the filesystem tree that gets committed to the OSTree repo. This can safely be deleted, however.