.gitlab-ci.yml
GitLab CI/CD pipelines are configured using a YAML file called .gitlab-ci.yml
.
Contents
Parameters
https://docs.gitlab.com/ee/ci/yaml/#stages
stages:
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 in
gitlab-ci.yml
or inSettings > CI/CD > Variables
in your project - Read https://stackoverflow.com/questions/tagged/gitlab-ci?tab=Votes
Related terms
artifacts:
needs:
introduced in 2019 (GitLab 12.2)https://about.gitlab.com/2019/08/22/gitlab-12-2-released/index.html
.travis.yml
See also
gitlab-ci.yml
,job: | stage: | stages: | artifacts: | include: | script: | when: | only: | needs:
- 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: