.gitlab-ci.yml
GitLab CI/CD pipelines are configured using a YAML file called .gitlab-ci.yml
.
Parameters
stages:
- 5 default stages that execute in order:
.pre
build
test
deploy
.post
Example:
stages: - build - test - deploy
build:
https://docs.gitlab.com/ee/ci/yaml/
script
https://docs.gitlab.com/ee/ci/yaml/#scriptbefore_script
after_script
stage
https://docs.gitlab.com/ee/ci/yaml/#stagetags
https://docs.gitlab.com/ee/ci/yaml/#tagsrules (if, changes, exists)
https://docs.gitlab.com/ee/ci/yaml/#rules
Security:
artifacts:reports:license_management
[2] (will be deprecated- template: License-Scanning.gitlab-ci.yml
)
Gitlab-ci.yml and CI/CD pipelines changelog
Activities
- Read
gitlab-ci.yml
reference documentation https://docs.gitlab.com/ee/ci/yaml/ - Review new keyworks introduced in
gitlab-ci.yml
reading this page - Review predefined variables: https://docs.gitlab.com/ee/ci/variables/predefined_variables.html and self defined variables https://docs.gitlab.com/ee/ci/variables/README.html#creating-a-custom-environment-variable
Related terms
See also
- Gitlab runner, runners:
gitlab-runner
,gitlab-ci.yml
,config.toml
, GitLab Runner Changelog - GitLab: Install GitLab, Upgrade GitLab Gitlab runner (changelog),
gitlab.rb, .gitlab/, gitlab-ci.yml
,gitlab-ctl, gitlab-rake, gitlab-backup, gitlab-rails
, GitLab editions, GitLab Security Dashboards, GitLab environments, GitLab environment variables, Auto DevOps, permissions, GitLab Pages,gitlab-rails
, GitLab scheduled pipelines, GitLab logs, GitLab changelog , GitLab Release CLI, GitLab Omnibus, GitLab Advanced Search, GitLab container registry, GitLab infrastructure registry
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Source: wikiversity
Advertising: