Adds a new helper script to determine which docker tags are needed for a given ref going through CI, and uses those tags to populate the GH actions matrix for a docker deploy step.