blob: 1e2137d3862e7fbad4e90092a1d3b7e38b843923 [file] [log] [blame]
Fathi Boudra240962e2020-05-20 22:04:21 +03001#!/bin/sh
2
3set -e
4
5trap cleanup_exit INT TERM EXIT
6
7cleanup_exit()
8{
9 rm -f *.list *.key
10}
11
12export LANG=C
13
Leonardo Sandovalc0df3de2020-10-29 17:12:51 -060014DISTRIBUTION=$(basename ${PWD} | cut -f1 -d '-')
15ARCHITECTURE=$(basename ${PWD} | cut -f2 -d '-')
16PROJECT=$(basename ${PWD} | cut -f3 -d '-')
Fathi Boudra240962e2020-05-20 22:04:21 +030017
Benjamin Copeland6bf4fee2020-08-20 15:19:33 +010018cp -a ../setup-sshd .
19
Leonardo Sandovalc0df3de2020-10-29 17:12:51 -060020image=trustedfirmware/ci-${ARCHITECTURE}-${PROJECT}-ubuntu:${DISTRIBUTION}
Fathi Boudra240962e2020-05-20 22:04:21 +030021docker build --pull --tag=$image .
22echo $image > .docker-tag