blob: 311ec46cc96cade4997d7cdb5c642f93e322e3f7 [file] [log] [blame]
Kelley Spoon76bcaed2022-04-29 00:11:35 -05001#!/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
14DISTRIBUTION=$(basename ${PWD} | cut -f1 -d '-')
15ARCHITECTURE=$(basename ${PWD} | cut -f2 -d '-')
16PROJECT=$(basename ${PWD} | cut -f3 -d '-')-$(basename ${PWD} | cut -f4 -d '-')
17
18cp -a ../setup-sshd .
19
20image=trustedfirmware/ci-${ARCHITECTURE}-${PROJECT}-ubuntu:${DISTRIBUTION}${DOCKER_SUFFIX}
21docker build --pull --no-cache --tag=$image .
22echo $image > .docker-tag