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: