Skip to content

Commit

Permalink
Create cloudbuild.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
michplunkett committed Sep 9, 2024
1 parent c66414c commit 597ab84
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 597ab84

Please sign in to comment.