AI Hints
Home›CI/CD with GitHub Actions Tutorial›Beyond Actions and Best Practices
CI/CD with GitHub Actions · Lesson 124 of 138

Other CI Tools

Beyond GitHub Actions.

⏱ 2 min read▶ Video at 2:24:08🎓 Free
Watch this lesson in the CI/CD with GitHub Actions courseWatch on YouTube ↗Full CI/CD with GitHub Actions course

GitHub Actions is popular, but it's not the only CI tool. At a new job, you might meet GitLab, Jenkins, or others. The good news is that the ideas are the same everywhere. Triggers, jobs, steps, and runners.

Other CI Tools
From the video: Other CI Tools
  • Not the only tool
  • GitLab, Jenkins, more
  • Same ideas everywhere

A quick tour

GitLab CI is built into GitLab, with a file called dot gitlab CI dot y m l. Jenkins is an older, self hosted server, configured with a Jenkinsfile. CircleCI and Azure Pipelines are hosted services, also using YAML files.

ToolConfig fileHosted?
GitHub Actions.github/workflows/*.ymlyes, or self
GitLab CI.gitlab-ci.ymlyes, or self
JenkinsJenkinsfileself-hosted
CircleCI.circleci/config.ymlyes

The same pipeline in GitLab

Here's a GitLab version of our pipeline. Stages run in order, test then deploy. Each job names its stage, and a Docker image to run in. Script is a list of commands, like run steps. And only main limits deploy to the main branch.

.gitlab-ci.ymlyaml
stages: [test, deploy]

test:
  stage: test
  image: python:3.12
  script:
    - pip install -r requirements.txt
    - pytest -q

deploy:
  stage: deploy
  script:
    - ./deploy.sh
  only:
    - main

Summary

Every CI tool has triggers, jobs, steps, and runners. Learn one well, and the others are easy to pick up. Next, best practices.

Key takeaways
  • GitLab CI
  • Jenkins
  • Same concepts
Next up: CI/CD Best Practices — habits of good pipelines