テスト環境デプロイ
This commit is contained in:
parent
bb072cc91c
commit
1259ba76c9
6 changed files with 267 additions and 30 deletions
32
functions/generate_minutes/deploy_function_dev.sh
Normal file
32
functions/generate_minutes/deploy_function_dev.sh
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
# プロジェクトIDを設定
|
||||
PROJECT_ID="datacom-poc"
|
||||
|
||||
# デプロイする関数名
|
||||
FUNCTION_NAME="generate_minutes"
|
||||
|
||||
# 関数のエントリポイント
|
||||
ENTRY_POINT="helloHttp"
|
||||
|
||||
# ランタイム
|
||||
RUNTIME="nodejs22"
|
||||
|
||||
# リージョン
|
||||
REGION="asia-northeast1"
|
||||
|
||||
# 環境変数ファイル
|
||||
ENV_VARS_FILE=".env_dev"
|
||||
|
||||
gcloud auth application-default set-quota-project $PROJECT_ID
|
||||
gcloud config set project $PROJECT_ID
|
||||
|
||||
gcloud functions deploy $FUNCTION_NAME \
|
||||
--gen2 \
|
||||
--region $REGION \
|
||||
--runtime $RUNTIME \
|
||||
--source=. \
|
||||
--entry-point $ENTRY_POINT \
|
||||
--env-vars-file $ENV_VARS_FILE \
|
||||
--trigger-http \
|
||||
--timeout 600s \
|
||||
Loading…
Add table
Add a link
Reference in a new issue