Propagation of a finite bubble in a Hele-Shaw channel of variable depth