2019-10-31 14:49:12 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
sh -c 'cd src && ./build.sh'
|
|
|
|
|
|
|
|
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
|