.gitlab-ci.yml
GitLab CI/CD pipelines are configured using a YAML file called .gitlab-ci.yml
.
Contents
Keyword reference
https://docs.gitlab.com/ee/ci/yaml/#stages
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/#rulesartifacts:
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
- Learn about GitLab Pipeline emails notifications: https://docs.gitlab.com/ee/user/project/integrations/pipeline_status_emails.html
Related terms
artifacts:
needs:
introduced in 2019 (GitLab 12.2)https://about.gitlab.com/2019/08/22/gitlab-12-2-released/index.html
.gitlab-ci.yml
.travis.yml
jenkinsfile
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 CI, variables, templates, executors,
.gitlab-ci.yml, .gitlab/
, Credential helpers, notifications, pipeline editor, Keyword reference, Changelog,ContainersNotReady
, GitLab environments - 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: