提交 910152d3 authored 作者: zhanrongzhen's avatar zhanrongzhen

add makefile

上级 2f89274f
VERSION := $(shell git describe --tags)
#IMAGE_NAME := harbor.inner.galaxy.ksyun.com/remote/rbi-server
IMAGE_NAME := harbor.afafa.club/rbi/openresty-static-server
image:
docker build -f Dockerfile . \
-t ${IMAGE_NAME}:$(VERSION)
docker push ${IMAGE_NAME}:$(VERSION)
echo "kubectl -n site-protection set image deploy openresty-static-server fileserver=${IMAGE_NAME}:$(VERSION)"
echo "kubectl -n rbi set image daemonsets/file-server fileserver=${IMAGE_NAME}:$(VERSION)"
deploy:
echo "deploy prod version: ${VERSION}"
echo "kubectl -n site-protection set image deploy openresty-server file-server=${IMAGE_NAME}:$(VERSION)"
kubectl -n rsite-protection set image deploy openresty-server file-server=${IMAGE_NAME}:$(VERSION)
ssh 62.234.15.155 "kubectl -n site-protection set image deploy file-server file-server=${IMAGE_NAME}:$(VERSION)"
ssh 62.234.15.155 "kubectl -n site-protection rollout restart deployment file-server"
.PHONY: image
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论