Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit ade61fd

Browse files
committed
Fix setting up build notification in another project
1 parent cd1f391 commit ade61fd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flamingo/services/foundations.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ def get_jobs(self) -> Dict[str, Callable]:
5959

6060
async def setup_build_notifications(self):
6161
# FIXME: does not seem to work on other projects than flamingo
62+
grm = ResourceManager()
63+
await grm.add_member(
64+
email=self.environment.project.pubsub_account,
65+
role='iam.serviceAccountTokenCreator',
66+
project_id=settings.FLAMINGO_PROJECT,
67+
)
68+
6269
build = CloudBuild()
6370
url = f'{settings.FLAMINGO_URL}/hooks/build'
6471
await build.subscribe(

0 commit comments

Comments
 (0)