blob: 1203ab3bfef95e61c5326b250aa49873b453cba1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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 '-')
cp -a ../linaro-overlay-repo.list ../linaro-overlay-repo.key .
sed -e "s|@DISTRIBUTION@|${DISTRIBUTION}|" -i *.list
image=linaro/ci-${ARCHITECTURE}-ubuntu:${DISTRIBUTION}
docker build --pull --tag=$image .
echo $image > .docker-tag
|