tulpanomicon/deploy.sh

26 lines
458 B
Bash
Raw Permalink Normal View History

2019-10-31 14:49:12 +00:00
#!/bin/sh
set -e
set -x
sh -c 'cd src && ./build.sh'
2020-01-19 19:18:54 +00:00
mdbook build
2019-10-31 14:49:12 +00:00
time=`date +%m%d%Y%H%M`
tag=`git describe --tags`
image="xena/tulpanomicon:$tag-$time"
docker build -t $image .
2019-11-01 15:55:30 +00:00
docker push $image
2019-10-31 14:49:12 +00:00
dyson manifest \
--name=tulpanomicon \
--domain=tulpanomicon.guide \
--dockerImage=$image \
--containerPort=3000 \
--replicas=1 \
--useProdLE=true > k8s/manifest.yml
kubens apps
2019-10-31 14:53:52 +00:00
kubectl apply -f k8s/
rm k8s/manifest.yml