Skip to content

Commit

Permalink
feat: util cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
kyong0612 committed Jan 2, 2024
1 parent 8cbfbfc commit c57937a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ PHONY: compose.up
compose.up:
@docker compose up -d

PHONY: deploy.all
deploy.all:
make deploy.apply
make deploy.build
make deploy.release

PHONY: deploy.apply
deploy.apply:
Expand All @@ -33,6 +38,12 @@ deploy.apply:
--region=asia-northeast1 \
--project=kyong0612-lab

PHONY: deploy.build
deploy.build:
@-docker image rm asia-northeast1-docker.pkg.dev/kyong0612-lab/fitness-supporter/prd
@docker buildx build . --platform linux/amd64 --no-cache --tag asia-northeast1-docker.pkg.dev/kyong0612-lab/fitness-supporter/prd:latest
@docker push asia-northeast1-docker.pkg.dev/kyong0612-lab/fitness-supporter/prd:latest

PHONY: deploy.release
deploy.release:
gcloud deploy releases create munual-release-$(shell date +%Y%m%d%H%M%S) \
Expand Down

0 comments on commit c57937a

Please sign in to comment.