blob: 72a86c7a7c66ca1e9de0d8819e8dc0e5b731c037 [file] [log] [blame]
#!/bin/sh
set -e
trap cleanup_exit INT TERM EXIT
cleanup_exit()
{
rm -f *.list *.key
}
export LANG=C
DISTRIBUTION=$(basename ${PWD} | cut -f1 -d '-')
ARCHITECTURE=$(basename ${PWD} | cut -f2 -d '-')
PROJECT=$(basename ${PWD} | cut -f3 -d '-')-$(basename ${PWD} | cut -f4 -d '-')
cp -a ../setup-sshd .
image=trustedfirmware/ci-${ARCHITECTURE}-${PROJECT}-alpine:${DISTRIBUTION}
docker build --pull --tag=$image .
echo $image > .docker-tag