Skip to content
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

Use CI/CD provided by gitlab #598

Open
cbleek opened this issue Dec 2, 2020 · 4 comments
Open

Use CI/CD provided by gitlab #598

cbleek opened this issue Dec 2, 2020 · 4 comments

Comments

@cbleek
Copy link
Member

cbleek commented Dec 2, 2020

I think, the free services of travis are not usable anymore. The processes are just take to long, until they start.

I think, we can build, test and depoy using gitlab.com

I've setup such a build process on gitlab.

the equivalent to the tracis.yml is the gitlab-ci.yml. There we can use a docker image for the build process. I've created such Image containing everything, which is needed (composer, npm, ext-mongodb)

this way the build process gets much faster.

https://gitlab.com/yawik/yawik/-/pipelines/224218926

@TiSiE @kilip

What do you think?

The code on gitlab is currently for testing only. I'll remove the projet completly an reimport it from github, after #591 is done

@kilip
Copy link
Collaborator

kilip commented Dec 2, 2020

Yes, travis build is slow.

I propose using github action to do the build. Here's a sample of symfony build:

https://github.com/symfony/symfony/runs/1487071210?check_suite_focus=true

A sample of github action config:

https://github.com/kilip/api-platform-laravel/blob/master/.github/workflows/ci.yml

If agreed, just assign me to this issue. I will transfer our build into github action.

@TiSiE
Copy link
Member

TiSiE commented Dec 2, 2020

I totally forgot that there are github actions now, dispite using them in https://github.com/cross-solution/phpunit-utils/actions

And now that I'm reminded, I like how easy the setup of github actions is.


On the other hand, we do plan to move YAWIK to gitlab, because we like the UI and general concepts of gitlab a bit more.
So it would make sense to use the gitlab CI integration then also.

@cbleek
Copy link
Member Author

cbleek commented Dec 2, 2020

I like the Gitlab software. And I like the company Gitlab even more. So I am biased.

I have found the following

With the Gitlab software, we can see that it is technically possible to release a new version of Gitlab with many new features every 4 weeks. And we can see how the Giltlab people do that.

What I like about Gitlab CI is the possibility to use a docker image for testing. This reduces the testing time because we don't have to compile php-mongodb every time we commit.
Github Actions can also test with docker images. But you need code from a 3rd party.

Check again and let me know how we should proceed.

@cbleek
Copy link
Member Author

cbleek commented Dec 21, 2020

Gitlab supports a container registry. That means it's possible to to build and store dockerimages in Gitlab. Selfhosted or gitlab.com.

I've created a Docker image https://gitlab.com/yawik/docker/build

The gitlab-ci.yml creates and stores the docker file. It's currently more or less copy&past from the gitlab docs

Gitlab also uses its own docker containers in its CI/CD process. We can see how they solve problems.

@kilip Do you know the Gitlab CI/CD process?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants