forked from Github/frigate
Setting cache-to=compression=zstd causes the resulting user-pulled image to have zstd-compressed layers, which are not compatible with docker prior to 23.0. Ubuntu 20.04 still ships with docker 20.10, which yields `Error processing tar file` when pulling these images. Renaming the jetpack cache images is my way of clearing the cache of the prior zstd layers, and it clarifies the convention I used for the other cache images in which there is one cache per base image/job, not per target/step. We don't need to delete the non-jetson cache images because they haven't been rebuilt since zstd was enabled.