Skip to content

Commit

Permalink
fix Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
sfujiwara committed Apr 22, 2024
1 parent 4a0f2e0 commit 7076f14
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
DOCKER_IMAGE := us-central1-docker.pkg.dev/sfujiwara/docker/sfujiwara
PROJECT := sfujiwara

docker-build:
docker build -t $(DOCKER_IMAGE) .
Expand All @@ -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
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit 7076f14

Please sign in to comment.