substitutions: _ENV: 'dev' _CF_SERVICE_ACCOUNT: 'mrt-cloudfunctions-sa-devtest' _CW_SERVICE_ACCOUNT: 'mrt-cloudworkflows-sa-devtest' options: logging: CLOUD_LOGGING_ONLY steps: # 会社一覧取得 - id: 'gcloud functions deploy mrt-export-companies-to-gcs' name: gcr.io/cloud-builders/gcloud dir: 'functions/export-companies-to-gcs' args: [ 'functions', 'deploy', 'mrt-export-companies-to-gcs', '--gen2', '--runtime=python312', '--region=asia-northeast1', '--source=./source', # dir で切り替えているので「.」 '--entry-point=handle_request', # 変更する場合はここ '--trigger-http', '--allow-unauthenticated', '--service-account=$_CF_SERVICE_ACCOUNT@$PROJECT_ID.iam.gserviceaccount.com', '--env-vars-file=.env_dev', '--project=$PROJECT_ID', '--quiet', ] waitFor: ['-'] # 担当者一覧取得 - name: gcr.io/cloud-builders/gcloud dir: 'functions/export-owners-to-gcs' args: [ 'functions', 'deploy', 'mrt-export-owners-to-gcs', '--gen2', '--runtime=python312', '--region=asia-northeast1', '--source=./source', # dir で切り替えているので「.」 '--entry-point=handle_request', # 変更する場合はここ '--trigger-http', '--no-allow-unauthenticated', '--service-account=$_CF_SERVICE_ACCOUNT@$PROJECT_ID.iam.gserviceaccount.com', '--env-vars-file=.env_dev', '--project=$PROJECT_ID', '--quiet', ] waitFor: ['-'] # スプレッドシート作成 - name: gcr.io/cloud-builders/gcloud dir: 'functions/create-log-sheet' args: [ 'functions', 'deploy', 'mrt-create-log-sheet', '--gen2', '--runtime=python312', '--region=asia-northeast1', '--source=./source', # dir で切り替えているので「.」 '--entry-point=handle_request', # 変更する場合はここ '--trigger-http', '--no-allow-unauthenticated', '--service-account=$_CF_SERVICE_ACCOUNT@$PROJECT_ID.iam.gserviceaccount.com', '--env-vars-file=.env_dev', '--project=$PROJECT_ID', '--quiet', ] waitFor: ['-'] # ワークフロー呼び出し関数 - name: gcr.io/cloud-builders/gcloud dir: 'functions/trigger-minutes-workflow-from-miitel' args: [ 'functions', 'deploy', 'mrt-trigger-minutes-workflow-from-miitel', '--gen2', '--runtime=python312', '--region=asia-northeast1', '--source=./source', # dir で切り替えているので「.」 '--entry-point=handle_request', # 変更する場合はここ '--trigger-http', '--no-allow-unauthenticated', '--service-account=$_CF_SERVICE_ACCOUNT@$PROJECT_ID.iam.gserviceaccount.com', '--env-vars-file=.env_dev', '--project=$PROJECT_ID', '--quiet', ] waitFor: ['-'] # 議事録作成関数 - name: gcr.io/cloud-builders/gcloud dir: 'functions/generate-meeting-minutes' args: [ 'functions', 'deploy', 'mrt-generate-meeting-minutes', '--gen2', '--runtime=python312', '--region=asia-northeast1', '--source=./source', # dir で切り替えているので「.」 '--entry-point=handle_request', # 変更する場合はここ '--trigger-http', '--cpu=0.5', '--memory=1Gi', '--no-allow-unauthenticated', '--service-account=$_CF_SERVICE_ACCOUNT@$PROJECT_ID.iam.gserviceaccount.com', '--env-vars-file=.env_dev', '--project=$PROJECT_ID', '--timeout=10m', '--quiet', ] waitFor: ['-'] # 議事録をドライブへアップロードする関数 - name: gcr.io/cloud-builders/gcloud dir: 'functions/upload-minutes-to-drive' args: [ 'functions', 'deploy', 'mrt-upload-minutes-to-drive', '--gen2', '--runtime=python312', '--region=asia-northeast1', '--source=./source', # dir で切り替えているので「.」 '--entry-point=handle_request', # 変更する場合はここ '--trigger-http', '--cpu=0.5', '--memory=1Gi', '--no-allow-unauthenticated', '--service-account=$_CF_SERVICE_ACCOUNT@$PROJECT_ID.iam.gserviceaccount.com', '--env-vars-file=.env_dev', '--project=$PROJECT_ID', '--quiet', ] waitFor: ['-'] # Hubspot連携関数 - name: gcr.io/cloud-builders/gcloud dir: 'functions/create-hubspot-meeting-log' args: [ 'functions', 'deploy', 'mrt-create-hubspot-meeting-log', '--gen2', '--runtime=python312', '--region=asia-northeast1', '--source=./source', # dir で切り替えているので「.」 '--entry-point=handle_request', # 変更する場合はここ '--trigger-http', '--no-allow-unauthenticated', '--service-account=$_CF_SERVICE_ACCOUNT@$PROJECT_ID.iam.gserviceaccount.com', '--env-vars-file=.env_dev', '--project=$PROJECT_ID', '--quiet', ] waitFor: ['-'] # スプレッドシートへ記録 - name: gcr.io/cloud-builders/gcloud dir: 'functions/append-log-to-sheet' args: [ 'functions', 'deploy', 'mrt-append-log-to-sheet', '--gen2', '--runtime=python312', '--region=asia-northeast1', '--source=./source', # dir で切り替えているので「.」 '--entry-point=handle_request', # 変更する場合はここ '--trigger-http', '--no-allow-unauthenticated', '--service-account=$_CF_SERVICE_ACCOUNT@$PROJECT_ID.iam.gserviceaccount.com', '--env-vars-file=.env_dev', '--project=$PROJECT_ID', '--quiet', ] waitFor: ['-'] # ワークフロー - name: gcr.io/cloud-builders/gcloud dir: 'workflows/workflow-create-minutes' args: [ 'workflows', 'deploy', 'mrt-workflow-create-minutes', '--location=asia-northeast1', '--source=main.yaml', '--service-account=$_CW_SERVICE_ACCOUNT@$PROJECT_ID.iam.gserviceaccount.com', '--quiet', ]