builders.sh: fix a couple of bugs
The initial version of the builders script had some bugs in it.
First, the s3 cp was creating another "misra-dockerfiles" subdirectory
and copying the down an extra level instead of overlaying them onto
the contents of the misra-dockerfils.git repo. This could cause the
build to error out when of the files from S3 were referenced in the
Dockerfile.
Also, the "$image" variable includes the prefix "./" which makes it
unsuitable to use for the tagname, so let's create a tag variable
using the last item of the path only by running basename on it.
Change-Id: I559211cf5c370a9e1785efd3c59a3c79b64581e5
1 file changed