deploy.sh (371B)
1 #!/usr/bin/env bash 2 set -e 3 4 # Always update this if you made changes to the Dockerfile 5 TAG=1.0.2 6 7 export BUILDAH_FORMAT=docker 8 docker build \ 9 -t "iacs/cs107_lecture16:${TAG}" \ 10 -t "iacs/cs107_lecture16:latest" . 11 12 docker login docker.io 13 docker push "iacs/cs107_lecture16:${TAG}" 14 docker push "iacs/cs107_lecture16:latest" 15 16 docker rmi -f iacs/cs107_lecture16:${TAG}