refine deploy script
This commit is contained in:
parent
7b5a2ce06f
commit
32accd1039
|
@ -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
|
16
k8s/k8s.sh
16
k8s/k8s.sh
|
@ -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
|
Loading…
Reference in New Issue