update build script

This commit is contained in:
2022-06-30 20:03:52 +02:00
parent a5e04ee099
commit e88ee57b68
+15 -1
View File
@@ -20,5 +20,19 @@ build_docker_image() {
docker build -t "$DOCKER_IMAGE_NAME:$TAG" . docker build -t "$DOCKER_IMAGE_NAME:$TAG" .
} }
build_docker_image "latest" case "$1" in
run)
run_docker_container run_docker_container
;;
build)
build_docker_image "latest"
;;
upload)
build_docker_image "latest"
docker push "$DOCKER_IMAGE_NAME:latest"
;;
*)
echo "Usage: $0 {run|build}"
exit 1
;;
esac