Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy UDMI cloud functions with gcloud #275

Merged
merged 3 commits into from
Mar 18, 2022
Merged

Conversation

grafnu
Copy link
Collaborator

@grafnu grafnu commented Mar 17, 2022

No description provided.

@grafnu grafnu requested review from noursaidi and pisuke March 17, 2022 15:52
@noursaidi
Copy link
Collaborator

The Firebase SDK bits also need to be removed or wrapped into some error handling for this to work, otherwise there are errors which prevent execution
image

@noursaidi
Copy link
Collaborator

But otherwise, running the script to deploy worked well

@grafnu
Copy link
Collaborator Author

grafnu commented Mar 17, 2022 via email

PUBSUB_FUNCTIONS="udmi_target udmi_state udmi_config udmi_reflect"
for func in $PUBSUB_FUNCTIONS; do
echo Deploying pubsub-trigger function $func...
gcloud functions deploy $func --trigger-topic=$func --runtime=$RUNTIME --project=$PROJECT --source=$SOURCE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with this for now but is there a way to make one atomic deploy, and/or do we want to stop deploying if any one deploy fails?

@grafnu
Copy link
Collaborator Author

grafnu commented Mar 18, 2022 via email

@grafnu grafnu merged commit 8191ddf into faucetsdn:master Mar 18, 2022
@grafnu grafnu deleted the cfdeploy branch March 18, 2022 14:49
@johnrandolph
Copy link
Collaborator

johnrandolph commented Mar 18, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants