-
GCPのAPIは手動で有効にします。
Please enable GCP API manually. -
GCPのシークレットマネジャーは手動で値を設定します。
Please set the value manually for GCP's secret manager. -
terraformコマンド実行前に環境変数を設定します。(terraformコマンドは
make apply
等)
Please set the environment variables before executing the terraform command. (terraform command ismake apply
etc.)
export GOOGLE_CREDENTIALS="$(< tf-dev.json)"
export TF_ENV=dev
以下の手順を実施することでGCPのCloudRunにアプリケーションがデプロイされます。
The application will be deployed to CloudRun on GCP by following the steps below.
-
make init-pre
-
make init-plan
-
make init-apply
-
Build and Push to Artifact Registry Backend(GithubActionsで手動実行)
-
Build and Push to Artifact Registry Frontend(GithubActionsで手動実行)
-
make-init
-
make-plan
-
make-apply
-
Deploy to Cloud Run Backend(GithubActionsで手動実行)
-
Deploy to Cloud Run Frontend(GithubActionsで手動実行)
-
DBへDDL実行
リポジトリへのpush、Pull requests作成時に単体テストと結合テストが実行されます。
Unit tests and integration tests are executed when creating push and pull requests to the repository.
Pull requestsのマージ時にCloudRunへのデプロイされます。
Deployed to CloudRun when merging pull requests.