From c20f920d1a53500cfb3e605b63fbe3e55498dbca Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Fri, 1 Mar 2024 12:17:43 +0530 Subject: [PATCH] cloudbuild --- cloudbuild.yaml | 4 +++- docker-compose.yml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 4f19a27be..5ea7f49a6 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -6,7 +6,9 @@ steps: - name: gcr.io/google.com/cloudsdktool/cloud-sdk args: - '-c' - - 'gcloud secrets versions access latest --secret="gooey-server-pytest-secrets" > /workspace/.env' + - | + gcloud secrets versions access latest --secret="gooey-server-pytest-secrets" > /workspace/.env + gcloud secrets versions access latest --secret="gooey-server-pytest-service-account-key" > /workspace/serviceAccountKey.json entrypoint: bash - name: gcr.io/cloud-builders/docker entrypoint: docker-compose diff --git a/docker-compose.yml b/docker-compose.yml index c56f53d3d..2022d730c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,6 +28,7 @@ services: - ./scripts/run-tests.sh volumes: - /workspace/.env:/app/.env + - /workspace/serviceAccountKey.json:/app/serviceAccountKey.json network_mode: "host" # Use the host network volumes: