Skip to content

Commit

Permalink
Update cloudbuild-base.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
azep-ninja authored Dec 30, 2024
1 parent d3ada55 commit 37440c5
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion cloudbuild-base.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
steps:
# Build the base image
# Debug: Show workspace contents
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args:
- '-c'
- |
echo "Workspace contents:"
ls -la
# Build the base image with detailed output
- name: 'gcr.io/cloud-builders/docker'
env:
- 'DOCKER_BUILDKIT=1'
args:
- 'build'
- '--progress=plain'
- '--no-cache'
- '-t'
- 'us-east1-docker.pkg.dev/${PROJECT_ID}/qi-agents/base:latest'
- '.'
Expand All @@ -27,12 +38,26 @@ steps:
- 'push'
- 'us-east1-docker.pkg.dev/${PROJECT_ID}/qi-agents/base:${SHORT_SHA}'

# Verify the image exists
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args:
- '-c'
- |
echo "Verifying image..."
docker images
echo "Testing image pull..."
docker pull us-east1-docker.pkg.dev/${PROJECT_ID}/qi-agents/base:latest
options:
env:
- 'DOCKER_BUILDKIT=1'
logging: CLOUD_LOGGING_ONLY
machineType: 'E2_HIGHCPU_8'
dynamic_substitutions: true

images:
- 'us-east1-docker.pkg.dev/${PROJECT_ID}/qi-agents/base:latest'
- 'us-east1-docker.pkg.dev/${PROJECT_ID}/qi-agents/base:${SHORT_SHA}'

timeout: '1800s'

0 comments on commit 37440c5

Please sign in to comment.