Last active
November 10, 2020 17:35
-
-
Save steeve/8cba5d34116cec9337bcf6769d25d852 to your computer and use it in GitHub Desktop.
bazel-cache-blog-post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud iam service-accounts create bazel-cache --project MYPROJECT | |
ROLES=(run.invoker storage.objectCreator storage.objectViewer) | |
for role in ${ROLES}; do | |
gcloud projects add-iam-policy-binding MYPROJECT \ | |
--member=serviceAccount:[email protected] \ | |
--role=roles/${role} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment