Skip to content

Commit

Permalink
ci/cache project root cloudbuild.yaml fix (#3566)
Browse files Browse the repository at this point in the history
When setting up a trigger for this cloudbuild.yaml file, it can only run
from the repository root - which then means this script fails as files
aren't where they are expected.

This fix retains the original structure of the cloudbuild.yaml and
shifts the original source files into where the rest of the script
expects it.
  • Loading branch information
markmandel authored Jan 5, 2024
1 parent 8044817 commit 8bdd493
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build/build-image/cache/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@

steps:

#
# Move everything to the /workspace as this is what the canonical
# build script uses, and we want to be as close to that as possible.
#
- name: bash
id: setup-cache-files
script: |
mkdir /tmp/workspace && \
mv /workspace/* /tmp/workspace && \
mv /tmp/workspace/build/build-image/cache/* . && \
ls -l
- name: 'gcr.io/cloud-builders/docker'
id: build_base_image
args:
Expand Down

0 comments on commit 8bdd493

Please sign in to comment.