mirror of
https://github.com/labstack/echo.git
synced 2025-04-23 12:18:53 +02:00
Removed Makefile
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
f5bf0eb0dd
commit
e619a97607
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,5 +1,9 @@
|
|||||||
# Website
|
# Website
|
||||||
website/public
|
website/public
|
||||||
|
website/make
|
||||||
|
website/Makefile
|
||||||
|
website/marathon*
|
||||||
|
.gitmodules
|
||||||
|
|
||||||
# Node.js
|
# Node.js
|
||||||
node_modules
|
node_modules
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
.PHONY: build push deploy
|
|
||||||
|
|
||||||
NAME := echo
|
|
||||||
TAG := $(shell date +'%Y.%m.%dT%H.%M')
|
|
||||||
|
|
||||||
build:
|
|
||||||
rm -rf public
|
|
||||||
hugo
|
|
||||||
gox -osarch=linux/amd64 -output server
|
|
||||||
docker build -t gcr.io/$(PROJECT_ID)/$(NAME):$(TAG) .
|
|
||||||
|
|
||||||
push: build
|
|
||||||
gcloud docker push gcr.io/$(PROJECT_ID)/$(NAME):$(TAG)
|
|
||||||
|
|
||||||
deploy: push
|
|
||||||
# https://github.com/kubernetes/kubernetes/blob/release-1.0/docs/user-guide/kubectl/kubectl_rolling-update.md
|
|
||||||
kubectl rolling-update $(NAME) --image=gcr.io/$(PROJECT_ID)/$(NAME):$(TAG)
|
|
@ -13,5 +13,5 @@ func main() {
|
|||||||
|
|
||||||
e.Static("/", "public")
|
e.Static("/", "public")
|
||||||
|
|
||||||
e.Run(":5091")
|
e.Run(":80")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user