Skip to content

Commit

Permalink
cloudbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Mar 1, 2024
1 parent 5b15bbb commit c20f920
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c20f920

Please sign in to comment.