hotdog/scripts/build
ducklet 503f367a0d minor script fixes
mypy has no fix function so it shouldn't be called as part of the fix
process.
2020-11-14 14:38:09 +01:00

17 lines
251 B
Bash
Executable file

#!/bin/sh -eu
tag=latest
cd "$RUN_DIR"
contextdir="$RUN_DIR"/docker
image=$(cat "$contextdir"/.dockerimage)
if [ -z "$image" ]; then
echo >&2 'image name not found.'
exit 2
fi
set -x
docker build "$@" --tag "$image":"$tag" "$contextdir"