0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 09:21:21 +01:00
svelte/site/Makefile

23 lines
600 B
Makefile
Raw Normal View History

2019-04-21 22:33:43 +02:00
HASH := `git rev-parse --short HEAD`
SERVICE := svelte-website
2019-04-22 01:07:20 +02:00
PROJECT := svelte-dev
2019-04-21 22:33:43 +02:00
IMAGE := gcr.io/$(PROJECT)/$(SERVICE):$(HASH)
sveltekit:
2019-04-21 22:33:43 +02:00
@echo "\n~> updating template & contributors list"
@npm run update
@echo "\n~> building SvelteKit app"
@npm run build
2019-04-21 22:33:43 +02:00
docker:
@echo "\n~> building docker image"
@gcloud builds submit --project $(PROJECT) -t $(IMAGE)
2019-04-21 22:33:43 +02:00
deploy: sveltekit docker
2019-04-21 22:33:43 +02:00
@echo "\n~> deploying $(SERVICE) to Cloud Run servers"
@gcloud run deploy $(SERVICE) --project $(PROJECT) --allow-unauthenticated --platform managed --region us-central1 --image $(IMAGE) --memory=512Mi