Skip to content

Commit 40d8b9b

Browse files
committed
fx service account.
1 parent 9a61782 commit 40d8b9b

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
@@ -110,6 +110,7 @@ steps:
110110
--boot-disk-size $_DISK_SIZE \
111111
--container-env AGENTS_BUCKET_NAME=${bucket_name},CHARACTER_FILE=${_CHARACTER_FILE} \
112112
--scopes=cloud-platform \
113+
--service-account=$_SERVICE_ACCOUNT \
113114
--metadata-from-file startup-script=startup.sh || { echo "Instance creation failed"; exit 1; }
114115
echo "Instance creation completed"
115116
fi
@@ -120,6 +121,7 @@ substitutions:
120121
_DISK_SIZE: 30GB
121122
_NETWORK: agents-vpc
122123
_SUBNET: agents-subnet
124+
_SERVICE_ACCOUNT: SERVICE-ACCOUNT@[PROJECT-ID].iam.gserviceaccount.com
123125
_CHARACTER_FILE: default.character.json
124126
_SUFFIX: agent
125127

0 commit comments

Comments
 (0)