From 161e8e67792a0bf135f43c36daa430328d73797e Mon Sep 17 00:00:00 2001 From: Mizuki Date: Mon, 19 Feb 2024 12:35:35 +0900 Subject: [PATCH 1/4] refactor(ml) --- .github/workflows/deploy_cloudrun_machine_learning.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy_cloudrun_machine_learning.yml b/.github/workflows/deploy_cloudrun_machine_learning.yml index eb18b269..a0e79ba1 100644 --- a/.github/workflows/deploy_cloudrun_machine_learning.yml +++ b/.github/workflows/deploy_cloudrun_machine_learning.yml @@ -31,6 +31,12 @@ jobs: with: workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} service_account: ${{ secrets.SERVICE_ACCOUNT }} + access_token_lifetime: 1200s + create_credentials_file: "true" + + - name: gcloud auth login by workload identity + run: |- + gcloud auth login --brief --cred-file="${{ steps.Auth.outputs.credentials_file_path }}" - name: Build Docker image run: | From a5efa18b584a72cfc2b7faf0362139cc89c7f93d Mon Sep 17 00:00:00 2001 From: Mizuki Date: Mon, 19 Feb 2024 12:38:04 +0900 Subject: [PATCH 2/4] refactor(ml) --- .github/workflows/deploy_cloudrun_machine_learning.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_cloudrun_machine_learning.yml b/.github/workflows/deploy_cloudrun_machine_learning.yml index a0e79ba1..9c01bdd3 100644 --- a/.github/workflows/deploy_cloudrun_machine_learning.yml +++ b/.github/workflows/deploy_cloudrun_machine_learning.yml @@ -36,7 +36,7 @@ jobs: - name: gcloud auth login by workload identity run: |- - gcloud auth login --brief --cred-file="${{ steps.Auth.outputs.credentials_file_path }}" + gcloud auth login --brief --no-launch-browser --cred-file="${{ steps.Auth.outputs.credentials_file_path }}" - name: Build Docker image run: | From 4ff8f7374fd6f3af00b617947dcee14b0dca13ef Mon Sep 17 00:00:00 2001 From: Mizuki Date: Mon, 19 Feb 2024 12:49:41 +0900 Subject: [PATCH 3/4] refactor(ml) --- .github/workflows/deploy_cloudrun_machine_learning.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/deploy_cloudrun_machine_learning.yml b/.github/workflows/deploy_cloudrun_machine_learning.yml index 9c01bdd3..74af5daa 100644 --- a/.github/workflows/deploy_cloudrun_machine_learning.yml +++ b/.github/workflows/deploy_cloudrun_machine_learning.yml @@ -32,11 +32,6 @@ jobs: workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} service_account: ${{ secrets.SERVICE_ACCOUNT }} access_token_lifetime: 1200s - create_credentials_file: "true" - - - name: gcloud auth login by workload identity - run: |- - gcloud auth login --brief --no-launch-browser --cred-file="${{ steps.Auth.outputs.credentials_file_path }}" - name: Build Docker image run: | From 1e9fe1b8c2125ca0febf2b0c55b491aff40ce741 Mon Sep 17 00:00:00 2001 From: Mizuki Date: Mon, 19 Feb 2024 12:58:18 +0900 Subject: [PATCH 4/4] =?UTF-8?q?feat(ml):=20=E5=8B=95=E4=BD=9C=E3=81=99?= =?UTF-8?q?=E3=82=8BGithub=20Actions=20workflow=E3=81=AE=E6=A7=8B=E7=AF=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy_cloudrun_machine_learning.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy_cloudrun_machine_learning.yml b/.github/workflows/deploy_cloudrun_machine_learning.yml index 74af5daa..e2ba527a 100644 --- a/.github/workflows/deploy_cloudrun_machine_learning.yml +++ b/.github/workflows/deploy_cloudrun_machine_learning.yml @@ -5,6 +5,8 @@ on: branches: - develop - feature/machine-learning/cicd + paths: + - "machine-learning/**" permissions: contents: read