blob: 72a86c7a7c66ca1e9de0d8819e8dc0e5b731c037 [file] [log] [blame]
Benjamin Copeland6996e442021-04-15 16:27:49 +01001#!/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 .
19image=trustedfirmware/ci-${ARCHITECTURE}-${PROJECT}-alpine:${DISTRIBUTION}
20docker build --pull --tag=$image .
21echo $image > .docker-tag