meteor-google-cloud icon indicating copy to clipboard operation
meteor-google-cloud copied to clipboard

How do i add encrypted files or env variables to the build process?

Open frozeman opened this issue 5 years ago • 4 comments

I followed the tutorial here, but using this package I couldn't add the cloudbuild.yml anywhere, as it doesn't use the root folder to deploy, but the bundle folder. How could it add the decrypt steps without forking your package?

frozeman avatar Jan 14 '20 14:01 frozeman

@frozeman You can use option --build-only, which will build the project into output/bundle folder, then you can deploy from there.

iamstevendao avatar Jan 15 '20 03:01 iamstevendao

i see thanks.

So simply

$ ... --build-only
$ cd output/bundle
$ gcloud submit ....

But it would be nice to be able to simply add google cloud build steps to decode ENV or files while submitting.

frozeman avatar Jan 16 '20 08:01 frozeman

@frozeman Yep, it would be nice. For now, if you used cloud build steps to decrypt the files, meteor-google-cloud would be used for the build step only.

iamstevendao avatar Jan 16 '20 23:01 iamstevendao

I tend to believe the package should take care of the build and deploy only. If we add decryption of variables it may start to increase the scope too much. I'm not sure.

raphaelarias avatar Jan 22 '20 17:01 raphaelarias