How does GitLab CI/CD work at a high level?
BeginnerConceptGitLab CI
Answer
You add .gitlab-ci.yml to the repo root. GitLab creates a pipeline per trigger (push, merge request, schedule, API), made of stages containing jobs. Jobs are picked up by runners registered with the instance, project or group. Jobs in the same stage run in parallel; stages run in order.
stages: [build, test, deploy]
build:
stage: build
script: [make build]
test:
stage: test
script: [make test]
More on GitLab CI
What is a GitLab Runner and what executors exist?IntermediateWhat are the types of runners (shared, group, project) and tags?IntermediateHow do `rules:` work and how do they replace `only/except`?IntermediateWhat are workflow rules and how do they prevent duplicate pipelines?AdvancedHow do artifacts and cache differ in GitLab CI?IntermediateWhat does `needs:` do and how does it create a DAG pipeline?Intermediate