refine deploy script

This commit is contained in:
Cadey Ratio 2019-10-31 14:49:12 +00:00
parent 7b5a2ce06f
commit 32accd1039
2 changed files with 23 additions and 16 deletions

23
deploy.sh Executable file
View File

@ -0,0 +1,23 @@
#!/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 .
dyson manifest \
--name=tulpanomicon \
--domain=tulpanomicon.guide \
--dockerImage=$image \
--containerPort=3000 \
--replicas=1 \
--useProdLE=true > k8s/manifest.yml
kubens apps
#kubectl apply -f k8s/
#rm k8s/manifest.yml

View File

@ -1,16 +0,0 @@
#!/bin/sh
image='xena/tulpanomicon:101320191'
dyson manifest \
--name=tulpanomicon \
--domain=tulpanomicon.guide \
--dockerImage=$image \
--containerPort=3000 \
--replicas=1 \
--useProdLE=true > manifest.yml
kubens apps
kubectl apply -f manifest.yml
kubectl apply -f tor.yml
rm manifest.yml