-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add a feature to only build for a selected environment #31
Comments
Interesting idea @nishchal-v , thanks for contributing! Just wondering, you don't build your project in CI in non-prod envs (like in PRs, or in the main branch)? |
@rogerluan yes i do build other environments as well. This specific scenario can come in handy where you have dedicated setup for only prod environment and you don't want to load every environment secret. |
Makes sense! 👍 |
I would like this as well. In my case we have debug and release builds that have different OAuth credentials. On a local developer machine they should not be able to build release configurations. We only build release configurations in CI environment which provides the environment variables for release. My workaround will essentially be to define 2 different yaml files. The one ran on developer machines only has:
and .arkana-release.yml has:
|
Nice solution @dalewking ! 💪 good to see that this has a workaround while it doesn't get implemented. I'm open to discussing how you guys feel like this should be implemented, from a DevX PoV, architectural, etc. I don't have an opinion yet |
The workaround suggested by @dalewking would require to manage multiple Having the capability of selecting the environment while running arkana is the best way to go, i think. |
That is why I labeled it a workaround, not a solution. It works but not ideal to have different yaml files that only differ in targets. |
Yes, i understand that. |
@nishchal-v @dalewking I've opened a PR for this here: #48 Would you be so kind and review it? Possibly test it? See if I missed anything, if you'd change anything in the design, etc :) Looking forward to your feedback! I hope this improves your projects without the necessity to keep multiple config files around 🤗 Cheers! |
Wow, thank you so much for including the feature 🙏🏼. Regarding the review of the PR, I am unaware of the Ruby development so it would be best if someone who understands the Ruby and it's coding standards review it. Regarding the testing of the PR, I have tested it for environment selection and it works as intended. Thanks again for including this feature. |
Btw, waiting for the Android projects support 😅. |
Glad you like the project and thanks for testing the PR! I'm afraid to inform that for Android support I'll either need a sponsor or someone else to contribute to the project 😅 |
We can build for selected flavour using
arkana --flavour snowflake
It would be nice to have feature like
arkana --environment Production
So that we don't need to have every environment keys in our CI and we can just load only production keys in CI and that would be enough to run Arkana on CI
The text was updated successfully, but these errors were encountered: