16 lines
500 B
Bash
Executable File
16 lines
500 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
|
|
|
|
# this image is private on DigitalOcean, make sure we're logged in
|
|
doctl registry login
|
|
|
|
docker build -t registry.digitalocean.com/jakejarvis/y2k:latest --no-cache "$YOU_ARE_HERE"
|
|
docker push registry.digitalocean.com/jakejarvis/y2k:latest
|