From 7076f148998aa4d91f00ab055347818a1987eb91 Mon Sep 17 00:00:00 2001 From: sfujiwara Date: Tue, 23 Apr 2024 02:02:47 +0900 Subject: [PATCH] fix Makefile --- Makefile | 13 ++++++++++++- README.md | 7 ++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2f1328b..1223e91 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ DOCKER_IMAGE := us-central1-docker.pkg.dev/sfujiwara/docker/sfujiwara +PROJECT := sfujiwara docker-build: docker build -t $(DOCKER_IMAGE) . @@ -7,4 +8,14 @@ docker-push: docker push $(DOCKER_IMAGE) cloud-run-deploy: - gcloud config list + gcloud run deploy \ + --project $(PROJECT) \ + --region us-central1 \ + --image $(DOCKER_IMAGE) \ + sfujiwara + +terraform-plan: + cd terraform && terraform plan + +terraform-apply: + cd terraform && terraform apply diff --git a/README.md b/README.md index d7560bb..b865ba2 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,16 @@ https://sfujiwara.com ### Terraform -### Cloud Run +### Docker Image ```shell make docker-build make docker-push +``` + +### Cloud Run + +```shell make cloud-run-deploy ```