EasyEnv
GitLab CI
Intermediate

GitLab CI

Learn GitLab CI/CD from your first .gitlab-ci.yml to multi-stage pipelines with artifacts, environments, and deployments.

11 lessons5.8h hands-on11 languages
Start learning freeGitLab CI course

11 lessons, in order

  1. 1

    What Is CI/CD

    Picture a team that ships a web app the old way. Someone finishes a feature, runs the tests on their own laptop (or skips them, because it is...

    Continuous integrationContinuous deliveryContinuous deploymentPipelinesStagesJobs+2
    20 min
  2. 2

    Your First Pipeline

    You now know the vocabulary: pipelines, stages, jobs, runners. Vocabulary is not the same as confidence. Right now, "GitLab runs your script...

    .gitlab-ci.yml locationMinimal pipelineSingle jobScript keywordPipeline UIJob logs
    25 min
  3. 3

    Jobs and Stages

    Your pipeline from the last lesson had one job. Real projects never stay that small. A real project compiles code, runs a unit test suite, runs a...

    Default stagesStage keywordParallel jobs in same stageStages keywordNeeds for DAGJob ordering
    30 min
  4. 4

    Variables and Secrets

    A pipeline that behaves exactly the same no matter who pushed it, or which branch they pushed to, cannot tell staging from production, and it cannot...

    Variables blockPredefined CI variablesCI_COMMIT_SHACI_PROJECT_DIRMasked variablesProtected variables+1
    30 min
  5. 5

    Artifacts and Caches

    Every job in a pipeline starts from a clean checkout of your repository and runs inside a throwaway environment that is thrown away the instant the...

    Artifacts pathsArtifacts expire_inDownloading artifactsCache keyCache pathsArtifacts vs caches
    30 min
  6. 6

    Rules and Conditional Jobs

    Every job you have written so far runs on every single push, no matter which branch it landed on or why the pipeline started. That is harmless while...

    Rules keywordIf conditionsCI_COMMIT_BRANCHCI_PIPELINE_SOURCEWhen manualChanges paths+1
    30 min
  7. 7

    Docker Jobs and Services

    A pipeline runner is a bare machine, and by default it has no idea your project needs Python 3.12, or a specific version of Node, or any particular...

    Image keywordServices keywordPostgres serviceRedis serviceDocker-in-dockerService networking
    35 min
  8. 8

    Environments and Deployments

    Your deploy job works. It runs scp or kubectl apply or an Ansible playbook, it goes green, and the new version is live. Then someone asks a question...

    Environment keywordEnvironment nameEnvironment urlDeployment trackingManual production deployDynamic environments+1
    30 min
  9. 9

    Includes and Templates

    By your third project, the .gitlab-ci.yml files start to rhyme. The same lint job. The same test setup with the same cache key. The same...

    Include localInclude projectInclude remoteInclude templateExtends keywordYAML anchors+1
    30 min
  10. 10

    Runners

    Everything in this course so far has been a description of work. You wrote script: lines, GitLab read them, and somehow a container appeared, ran...

    Shared runnersGroup runnersProject runnersDocker executorShell executorKubernetes executor+2
    30 min
  11. 11

    Capstone: Build, Test, Deploy

    Every lesson in this course taught one keyword against a toy job. That is how you learn a keyword and it is not how you meet one. A real pipeline is...

    Multi-stage pipelineBuild artifactPostgres service testDocker image build and pushManual production deployRules on main
    60 min
GitLab CI Course: Hands-on, in 11 Languages | Engineering Courses