Setup GitLab CI/CD
I suggest to initially start with the following stages:
- Build:
-
Production Build
- Specific Ruby base image (let's start with the most recent version (currently:
ruby:2.6.4
)) - Pinned version dependencies installed via
bundler install
fromGemfile.lock
- Specific Ruby base image (let's start with the most recent version (currently:
-
Latest dependencies
- Use latest Ruby base image (
ruby:latest
) - Install most recent dependencies (
bundle update
should do the job) - This job is allowed to fail. It helps us to get notified when there are breaking changes in any dependency.
- Use latest Ruby base image (
-
Production Build
- Deploy
- Let's deploy the current master (artifacts from the production build) to GitLab Pages for the beginning.