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
How to use PRO on CI machine #421
Comments
thanks for subscribing :D make sure to watch #415, should have it ready today |
Awesome thanks 👍 |
I still have to document and simplify this, but for a Node app you'd do:
For env vars in Semaphore/Circle/Travis etc you'll need:
Where I'll add some command like |
@tj thanks already doing something very similar to this. I was more thinking if I add an env through up on my local pro version. ie: Will the CI built deployment be able to read that env since it is not logged into my PRO up account? |
ohhh I see what you mean, currently that won't work. You have to upgrade in CI as well, because the binary running on Lambda is baked into the Up binary, so you would end up running the version of Up which does not load the env vars at all. I'll make sure to document that, it's definitely not clear. |
@tj the CI I'm using runs off docker images. Not really sure how I would go about logging in and upgrading on a docker image? |
Hmm which CI service? Every one I’ve seen lets you edit the commands and env vars so that should be enough hopefully! |
@tj I'm using wercker which is based on docker. Sorry I dont think I made my question clear. In-order to download the PRO binary you need todo which requires input and verification via email? how todo this in a docker image? |
ahh you can use I'll make this easier but for now you can grab the contents with:
|
Thanks @tj got it working using Two things I stumbled across while configuring PRO on CI:
As a workaround I created a dummy dir so that it wouldnt complain about the dir name
|
Totally agree about the upgrade version (#387 if you want to sub), not ideal to fetch any random version that's for sure, I'll try and prioritize that. Regarding the name issue there, that shouldn't happen if you have a |
cool makes sense thanks! |
I think I have a working example here: Bit scary to use my AWS_ACCESS_KEY_ID key here. I wonder if my UP_CONFIG can be tied the a specific AWS_PROFILE. Since I've noticed my UP_CONFIG is actually my work place one. |
Posting TJ's guide on Medium just because it's not included yet. |
I have been using UP in production for a while now and just purchased the PRO ❤️
I'm currently using the community version with simple variable substitution to automatically deploy from CI.
How do I login and install the PRO version from a CI build machine so I can start using the new encrypted ENV features?
Thanks!
The text was updated successfully, but these errors were encountered: