Fix names of uploaded qcow2 files for manila-image-elements
When tagging commits, the resulting file that gets uploaded to
tarballs.o.o contains the suffix -refs-tags-<tag> when we just
want -<tag> as the suffix.
#!/bin/bash -xe
./tools/gate/build-images {image-name}
BRANCH=$ZUUL_REFNAME
- BRANCH_PATH=`echo $BRANCH | tr / -`
+ BRANCH_PATH=`echo $BRANCH | sed 's/^refs.tags.//' | tr / -`
mkdir -p images
mv manila-service-image.qcow2 images/manila-service-image-$BRANCH_PATH.qcow2
