CodeIgniter Forums
Using CI/CD on GitLab with CI4 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: Using CI/CD on GitLab with CI4 (/showthread.php?tid=79974)



Using CI/CD on GitLab with CI4 - etcho - 08-26-2021

Hello, everyone.
At my work, we created a framework based on CI2, later upgraded to CI3, but not to CI4 due to retro compatibility issues. We have over 30 applications using this framework, with our homemade deploy system and not great integrations with modern standards.
To improve our workflow, we changed our git server to GitLab, so we could have a ton of new features, such as CI/CD. Now that everything is set up, I'm not sure how I could begin to put this to work. First I thought that, as CI3 is relatively old, it would not be easy to integrate with this kind of thing. But after searching for guides for CI4, I cannot find eighter. Since CI4 came around, we discuss upgrading our framework to it, and this could be a good reason to do it, but if we won't be able to use CI/CD with CI4, I don't see the point to spend the effort.
My question is: is there a guide, or does anyone have the knowledge, on how to use CI/CD in GitLab on a CI4 project, or even CI3?


RE: Using CI/CD on GitLab with CI4 - MGatner - 08-27-2021

I’m using a hybrid GitLab/GitHub solution at my day job, so I don’t have a full GitLab CI/CD to share but here’s a starting point at least: https://github.com/duke-bluesmith/bluesmith/blob/develop/.gitlab-ci.yml


RE: Using CI/CD on GitLab with CI4 - natanfelles - 08-28-2021

I have not a public project using CodeIgniter on GitLab CI/CD.

But this file can help on your custom configuration: https://gitlab.com/aplus-framework/projects/app/-/blob/master/.gitlab-ci.yml

The keywords reference is here: https://docs.gitlab.com/ee/ci/yaml/

There are very small changes to make it work with CodeIgniter 4.


RE: Using CI/CD on GitLab with CI4 - paliz - 08-29-2021

Thank you its huge help