You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
While GitHub Actions is popular, it is not the only CI/CD platform. This lesson covers GitLab CI/CD, Jenkins, CircleCI, and other platforms, helping you understand the landscape and choose the right tool.
GitLab CI/CD is a built-in CI/CD solution that is part of GitLab — no separate tool or integration needed.
GitLab pipelines are defined in a .gitlab-ci.yml file at the root of the repository:
stages:
- build
- test
- deploy
variables:
NODE_ENV: production
build:
stage: build
image: node:20-alpine
script:
- npm ci
- npm run build
artifacts:
paths:
- dist/
expire_in: 1 hour
test:
stage: test
image: node:20-alpine
script:
- npm ci
- npm run lint
- npm test -- --coverage
coverage: '/All files[^|]*\|[^|]*\s+([\d.]+)/'
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.