From 597ab84c71a2b7e40262b8e3a8f81d9888d05ada Mon Sep 17 00:00:00 2001 From: michplunkett <5885605+michplunkett@users.noreply.github.com> Date: Mon, 9 Sep 2024 00:01:05 -0700 Subject: [PATCH] Create cloudbuild.yaml --- cloudbuild.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 cloudbuild.yaml diff --git a/cloudbuild.yaml b/cloudbuild.yaml new file mode 100644 index 0000000..e10cfd1 --- /dev/null +++ b/cloudbuild.yaml @@ -0,0 +1,22 @@ +steps: + - name: 'python:3.11' # Specify the Python version you are using + entrypoint: 'bash' + args: + - '-c' + - | + python -m venv /workspace/venv + source /workspace/venv/bin/activate + pip install --upgrade pip + pip install -r requirements.txt + + - name: 'gcr.io/cloud-builders/gcloud' + args: ['app', 'deploy', '--quiet'] + +# Optionally specify any build artifacts +artifacts: + objects: + location: 'gs://$PROJECT_ID-build-artifacts/$BUILD_ID/' + paths: ['**/*'] + +# Set the build timeout (e.g., 10 minutes) +timeout: '900s'