-
Notifications
You must be signed in to change notification settings - Fork 0
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
Automate or Script deployment of functions #5
Comments
Storage pricing:
GenePlexus storage notes:
GH Action Caching:
|
Regarding progress, so far I've tested the data retrieval from the bucket (which requires authenticating to GCP using a service account key), extracting the archive, caching, and verifying that the filesystem with the extracted data looks correct. I've been using act to do the action testing, which is surprisingly actually working for once, including emulating a local GH action cache. I haven't tested actually deploying the functions because I didn't want to mess up the current deployment. @ChristopherMancuso, if you're ok with me trying and potentially having to revert to a previous deployment if things go awry, I can test that, too. FYI, I've been testing with the |
This all sounds great. I feel like you can mess with the current GCP deployment as much as you want since you set the repo up to use |
Closes #5 This PR adds one workflow per function (i.e., one for `convert-ids` and one for `ml`) that redeploys the function whenever anything is merged into `main` that alters the function's code. The PR includes a helper workflow, `helper-deploy-func.yaml`, which does the following: 1. installs the gcloud tools 2. authenticates to GCP as the `cloud-function-deployer` service account, via a service account credentials file stored as a secret in this repo 3. pulls the data archive associated with the current function from a GCS bucket, unless it's already in the GitHub actions cached 4. extracts the data archive, caches the resulting data under a hash of the data archive 5. deploys the function Each function mentioned above uses the function deployer helper workflow to minimize code duplication.
It would be good to have some scripts that can generate the needed files/scripts for deploying functions for the various hyperparameters
main.py
andrequirements.txt
filesgcloud functions deploy
commandThe text was updated successfully, but these errors were encountered: