-
Notifications
You must be signed in to change notification settings - Fork 20
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
Implement CI/CD pipeline #128
Comments
@jviitamo How's the deployment process currently ? From my limited knowledge, someone has to run manually a command to deploy on Otax, do we want to automate this on merges to otax/production, and force PR to have your review before being merged ? |
You are totally correct about the deployment process. I am not sure if we want to automate the deployment to otax, is that a possible security issue @samporapeli? If not, the way you described would be perfect! I think that merging rights should also be limited then to the CTO only. To start with, we could make some tests to make sure code is valid even before making merging possible. |
Well, that would be a way to run code at otax without an ssh key, but I don't think it's a reason to not develop such pipeline, should it be considered an important or useful feature. I think the deployment process is simple enough already and it's also not completely bad thing to have more control over when to update, for example, code can be merged during day and deployed at night when there's no or little usage. Or if a change requires modifications to I think it would be fine if only CTO and/or selected persons are able to merge into main branch, but it would be convenient that hacker crew still has commit rights to other branches as opposed to developing in own forks. I am not sure how Github's access control works and if that's possible. One possible deployment technique could be that a bare git repository is added to otax, that has post push hooks that deploy the new code. That way deployment is limited to persons with a ssh key, and code can be updated to Github and otax at different times. |
IIRC it is absolutely possible to limit branch merges to certain people, while leaving commits / pushes to other branches. IMO currently features / bug fixes are being implemented at quite reasonable time, so I don't think it's such a burden to the CTO to run manually the steps to deploy. Which is why I agree with the deployment technique proposed by @samporapeli. |
Sampo's proposal sounds good. Maybe it would have been a better idea to make two different issues for CI and CD, as one is needed more than the other. In my opinion, the deployment process is less important to automatize than the CI. Consequently, I'd rather first start making the CI and only continue with CD after it. |
One major improvement to Ilmomasiina could be to add CI/CD pipeline to ensure code stability before merging changes into production. One alternative to testing could be Cypress.
The text was updated successfully, but these errors were encountered: