Skip to content

Commit 9a61782

Browse files
committed
updated scopes.
1 parent 22a7abc commit 9a61782

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cloudbuild.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ steps:
9595
gcloud compute instances update-container ${full_name} \
9696
--container-image us-central1-docker.pkg.dev/$PROJECT_ID/qi-agents/${full_name}:${version} \
9797
--container-env AGENTS_BUCKET_NAME=${bucket_name},CHARACTER_FILE=${_CHARACTER_FILE} \
98+
--scopes=cloud-platform \
9899
--zone $_ZONE || { echo "Instance update failed"; exit 1; }
99100
echo "Instance update completed"
100101
else
@@ -108,6 +109,7 @@ steps:
108109
--no-address \
109110
--boot-disk-size $_DISK_SIZE \
110111
--container-env AGENTS_BUCKET_NAME=${bucket_name},CHARACTER_FILE=${_CHARACTER_FILE} \
112+
--scopes=cloud-platform \
111113
--metadata-from-file startup-script=startup.sh || { echo "Instance creation failed"; exit 1; }
112114
echo "Instance creation completed"
113115
fi

0 commit comments

Comments
 (0)