switch from Docker Hub to GCR for private OS image

and cleaned up install.sh a bit
This commit is contained in:
2020-06-12 11:35:55 -04:00
parent bfaf0b042d
commit 9c31f20e6a
4 changed files with 48 additions and 30 deletions
+4 -4
View File
@@ -8,8 +8,8 @@ YOU_ARE_HERE="$(realpath "$(dirname "${BASH_SOURCE[0]}")")"
# container will be useless unless we bundle the actual OS
test -f "$YOU_ARE_HERE"/hdd/hdd.img
# this image is private on Docker Hub, make sure we're logged in
docker login
# this image is private on Google Cloud Registry, make sure we're logged in
gcloud auth configure-docker
docker build -t jakejarvis/y2k:latest --no-cache "$YOU_ARE_HERE"
docker push jakejarvis/y2k:latest
docker build -t gcr.io/jakejarvis/y2k:latest --no-cache "$YOU_ARE_HERE"
docker push gcr.io/jakejarvis/y2k:latest