mirror of https://github.com/sveltejs/svelte
parent
284b3f61d9
commit
2b9b2362b7
@ -0,0 +1,24 @@
|
|||||||
|
HASH := `git rev-parse --short HEAD`
|
||||||
|
|
||||||
|
SERVICE := svelte-website
|
||||||
|
PROJECT := todo_google_project_name
|
||||||
|
|
||||||
|
IMAGE := gcr.io/$(PROJECT)/$(SERVICE):$(HASH)
|
||||||
|
|
||||||
|
sapper:
|
||||||
|
@echo "\n~> updating template & contributors list"
|
||||||
|
@npm run update
|
||||||
|
@echo "\n~> building Sapper app"
|
||||||
|
@npm run sapper
|
||||||
|
|
||||||
|
|
||||||
|
docker:
|
||||||
|
@echo "\n~> building docker image"
|
||||||
|
@docker build . -t $(IMAGE)
|
||||||
|
@echo "\n~> pushing docker image"
|
||||||
|
@docker push $(IMAGE)
|
||||||
|
|
||||||
|
|
||||||
|
deploy: sapper docker
|
||||||
|
@echo "\n~> deploying $(SERVICE) to Cloud Run servers"
|
||||||
|
@gcloud beta run deploy $(SERVICE) --allow-unauthenticated --region us-central1 --image $(IMAGE) --memory=512Mi
|
Loading…
Reference in new issue