Skip to content

Commit 5bb35a4

Browse files
Merge pull request #1597 from gurusai-voleti/ai-gsutil-migration-12e6407dadb742bd92d1e8e7f7e474df
chore: Migrate gsutil usage to gcloud storage
2 parents e1b76af + 13b5f45 commit 5bb35a4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

cloudbuild.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
# the License.
1414

1515
steps:
16-
- name: 'gcr.io/cloud-builders/gsutil'
17-
args: ['-q', '-m', 'rsync', '-r', '${_GCS_CACHE_PATH}', '/m2_cache']
16+
- name: 'gcr.io/cloud-builders/gcloud'
17+
entrypoint: 'gcloud'
18+
args: ['storage', 'rsync', '--recursive', '${_GCS_CACHE_PATH}', '/m2_cache']
1819
volumes:
1920
- path: '/m2_cache'
2021
name: 'm2_cache'
@@ -27,8 +28,9 @@ steps:
2728
volumes:
2829
- path: '/m2_cache'
2930
name: 'm2_cache'
30-
- name: 'gcr.io/cloud-builders/gsutil'
31-
args: ['-q', '-m', 'rsync', '-r', '/m2_cache', '${_GCS_CACHE_PATH}']
31+
- name: 'gcr.io/cloud-builders/gcloud'
32+
entrypoint: 'gcloud'
33+
args: ['storage', 'rsync', '--recursive', '/m2_cache', '${_GCS_CACHE_PATH}']
3234
volumes:
3335
- path: '/m2_cache'
3436
name: 'm2_cache'

0 commit comments

Comments
 (0)