y2k/build.sh
2022-07-19 13:17:59 -04:00

14 lines
423 B
Bash
Executable File

#!/usr/bin/env bash
set -euxo pipefail
# what a mess. https://stackoverflow.com/a/53183593
YOU_ARE_HERE="$(realpath "$(dirname "${BASH_SOURCE[0]}")")"
# container will be useless unless we bundle the actual OS
test -f "$YOU_ARE_HERE"/container/hdd/hdd.img
# build the container & tag it locally
docker build -t git.pipe.fail/jake/y2k:latest --squash --no-cache "$YOU_ARE_HERE"
docker push git.pipe.fail/jake/y2k:latest