Skip to content

Commit 875db30

Browse files
chore: Migrate gsutil usage to gcloud storage (#549)
1 parent d1d4fd3 commit 875db30

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ $(BUILD_DIR):
7575

7676
.PHONY: release
7777
release: cross
78-
gsutil cp $(BUILD_DIR)/$(PROJECT)-* gs://$(RELEASE_BUCKET)/$(VERSION)/
78+
gcloud storage cp $(BUILD_DIR)/$(PROJECT)-* gs://$(RELEASE_BUCKET)/$(VERSION)/
7979

8080
.PHONY: clean
8181
clean:

deploy/cloudbuild.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ steps:
2626

2727

2828
# Upload to GCS
29-
- name: 'gcr.io/cloud-builders/gsutil'
30-
args: ['cp', '-r', 'out/*', 'gs://container-structure-test/builds/$COMMIT_SHA/']
29+
- name: 'gcr.io/cloud-builders/gcloud'
30+
args: ['storage', 'cp', '--recursive', 'out/*', 'gs://container-structure-test/builds/$COMMIT_SHA/']
3131

3232
# Build the image
3333
- name: 'gcr.io/cloud-builders/docker'

deploy/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ if [ -z "$COMMIT" ]; then
2424
usage
2525
fi
2626

27-
gsutil cp gs://container-structure-test/builds/$COMMIT/container-structure-test gs://container-structure-test/latest/
27+
gcloud storage cp gs://container-structure-test/builds/$COMMIT/container-structure-test gs://container-structure-test/latest/

deploy/release_cloudbuild.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ steps:
2626
env: ['GOARCH=ppc64le']
2727

2828
# Upload to GCS
29-
- name: 'gcr.io/cloud-builders/gsutil'
30-
args: ['cp', '-r', 'out/*', 'gs://container-structure-test/$TAG_NAME/']
29+
- name: 'gcr.io/cloud-builders/gcloud'
30+
args: ['storage', 'cp', '--recursive', 'out/*', 'gs://container-structure-test/$TAG_NAME/']
3131

32-
- name: 'gcr.io/cloud-builders/gsutil'
33-
args: ['cp', '-r', 'gs://container-structure-test/$TAG_NAME/*', 'gs://container-structure-test/latest/']
32+
- name: 'gcr.io/cloud-builders/gcloud'
33+
args: ['storage', 'cp', '--recursive', 'gs://container-structure-test/$TAG_NAME/*', 'gs://container-structure-test/latest/']
3434

3535
# Build the image
3636
- name: 'gcr.io/cloud-builders/docker'

0 commit comments

Comments
 (0)