Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions src/python/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
steps:
- name: gcr.io/k8s-skaffold/pack
args:
Comment on lines +1 to +3
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR adds a new src/python/cloudbuild.yaml (Cloud Build/Cloud Run deployment config), but the PR description only mentions dependency/lockfile updates. Please update the PR description (or add an inline comment) to explain why this file is being introduced and how it’s intended to be used (e.g., new trigger, replacing an existing build config, etc.).

Copilot uses AI. Check for mistakes.
- build
- >-
$_AR_HOSTNAME/$_AR_PROJECT_ID/$_AR_REPOSITORY/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA
- '--builder=gcr.io/buildpacks/builder:google-24'
- '--network=cloudbuild'
- '--path=src/python'
id: Buildpack
entrypoint: pack
- name: gcr.io/cloud-builders/docker
args:
- push
- '--all-tags'
- $_AR_HOSTNAME/$_AR_PROJECT_ID/$_AR_REPOSITORY/$REPO_NAME/$_SERVICE_NAME
id: Push
- name: gcr.io/google.com/cloudsdktool/cloud-sdk:slim
args:
- run
- services
- update
- $_SERVICE_NAME
- >-
--image=$_AR_HOSTNAME/$_AR_PROJECT_ID/$_AR_REPOSITORY/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA
- >-
--update-labels=managed-by=gcp-cloud-build-deploy-cloud-run,gcb-trigger-id=$_TRIGGER_ID,gcb-trigger-region=$LOCATION,commit-sha=$COMMIT_SHA,gcb-build-id=$BUILD_ID
- '--region=$_DEPLOY_REGION'
- '--quiet'
id: Deploy
entrypoint: gcloud
images:
- >-
$_AR_HOSTNAME/$_AR_PROJECT_ID/$_AR_REPOSITORY/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA
options:
requestedVerifyOption: VERIFIED
substitutionOption: ALLOW_LOOSE
logging: CLOUD_LOGGING_ONLY
substitutions:
_DEPLOY_REGION: europe-west1
_AR_HOSTNAME: europe-west1-docker.pkg.dev
_AR_REPOSITORY: cloud-run-source-deploy
_AR_PROJECT_ID: lamp-control-469416
_SERVICE_NAME: python-lamp-control-api
_TRIGGER_ID: e4522704-3279-49da-b701-63621b89eb67
tags:
- gcp-cloud-build-deploy-cloud-run
- python-lamp-control-api
Loading
Loading