Difference between revisions of ".gitlab-ci.yml"

From wikieduonline
Jump to navigation Jump to search
 
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
GitLab [[Continuous Integration/Continuous Delivery (CI/CD)|CI/CD pipelines]] are configured using a [[DevOps/YAML|YAML]] file called <code>.gitlab-ci.yml</code>.
+
[[GitLab CI/CD]] pipelines are configured using a [[DevOps/YAML|YAML]] file called <code>.gitlab-ci.yml</code>.
 
* https://docs.gitlab.com/ee/ci/yaml/
 
* https://docs.gitlab.com/ee/ci/yaml/
 
* https://gitlab.bt.local/help/ci/yaml/README.md
 
* https://gitlab.bt.local/help/ci/yaml/README.md
  
== Parameters ==
+
== [[GitLab CI keyword reference]] ==
 
 
https://docs.gitlab.com/ee/ci/yaml/#stages
 
* <code>stages:</code>
 
:5 default stages that execute in order: 
 
:: <code>.pre</code>
 
:: <code>[[build]]</code>
 
:: <code>test</code>
 
:: <code>[[deploy]]</code>
 
:: <code>.post</code>
 
 
 
Example:
 
<pre>
 
stages:
 
  - build
 
  - test
 
  - deploy
 
</pre>
 
 
 
* <code>build:</code>
 
 
 
https://docs.gitlab.com/ee/ci/yaml/
 
* <code>script</code> https://docs.gitlab.com/ee/ci/yaml/#script
 
* <code>before_script</code>
 
* <code>after_script</code>
 
* <code>stage</code> https://docs.gitlab.com/ee/ci/yaml/#stage
 
* <code>tags</code> https://docs.gitlab.com/ee/ci/yaml/#tags
 
* <code>rules (if, changes, exists)</code> https://docs.gitlab.com/ee/ci/yaml/#rules
 
Security:
 
* <code>[[artifacts:reports:dast]]</code> <ref>https://gitlab.bt.local/help/ci/yaml/README.md#artifactsreportssast-ultimate</ref>
 
[[License management]]:
 
* <code>[[artifacts:reports:license_management]]</code> <ref>https://gitlab.bt.local/help/ci/yaml/README.md#artifactsreportslicense_management-ultimate</ref> (will be deprecated  <code>- template: License-Scanning.gitlab-ci.yml</code>)
 
 
 
 
 
* <code>[[secrets:]]</code> https://docs.gitlab.com/ee/ci/yaml/#secrets
 
  
 
== [[Gitlab-ci.yml and CI/CD pipelines changelog]] ==
 
== [[Gitlab-ci.yml and CI/CD pipelines changelog]] ==
Line 43: Line 9:
 
== Activities ==
 
== Activities ==
 
# Read <code>gitlab-ci.yml</code> reference documentation https://docs.gitlab.com/ee/ci/yaml/
 
# Read <code>gitlab-ci.yml</code> reference documentation https://docs.gitlab.com/ee/ci/yaml/
# Review new keyworks introduced in <code>gitlab-ci.yml</code> reading this page
+
# Review predefined <code>[[GitLab CI: variables:|variables]]:</code> 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 <code>[[gitlab-ci.yml]]</code> or in <code>Settings > CI/CD > Variables</code> in your project
# 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 <code>[[gitlab-ci.yml]]</code> or in <code>Settings > CI/CD > Variables</code> in your project
 
 
# Read https://stackoverflow.com/questions/tagged/gitlab-ci?tab=Votes
 
# 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 ==
 
== Related terms ==
 
* <code>[[artifacts:]]</code>
 
* <code>[[artifacts:]]</code>
 +
* <code>[[timeout:]]</code>
 
* <code>[[needs:]]</code> introduced in 2019 ([[GitLab 12.2]])<code>https://about.gitlab.com/2019/08/22/gitlab-12-2-released/index.html</code>
 
* <code>[[needs:]]</code> introduced in 2019 ([[GitLab 12.2]])<code>https://about.gitlab.com/2019/08/22/gitlab-12-2-released/index.html</code>
* <code>[[.travis.yml]]</code>
+
{{CI files TOC}}
* <code>[[Jenkinsfile]]</code>
+
* [[GitLab Workflow extension for VSCode]] provides autocompletion funtionalities
 +
* [[.github/workflows/]]
  
 
== See also ==
 
== See also ==
 
* {{gitlab-ci.yml}}
 
* {{gitlab-ci.yml}}
 
* {{gitlab runner}}
 
* {{gitlab runner}}
* {{GitLab}}
+
* {{GitLab CI}}
 
 
  
[[Category:Cloud computing| ]]
+
[[Category:GitLab]]
[[Category: Software development]]
 
[[Category:Version Control]]
 
  
  
 
{{CC license}}
 
{{CC license}}
 
Source: wikiversity
 
Source: wikiversity

Latest revision as of 20:16, 13 April 2023

GitLab CI/CD pipelines are configured using a YAML file called .gitlab-ci.yml.

GitLab CI keyword reference[edit]

Gitlab-ci.yml and CI/CD pipelines changelog[edit]

Activities[edit]

  1. Read gitlab-ci.yml reference documentation https://docs.gitlab.com/ee/ci/yaml/
  2. 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 in Settings > CI/CD > Variables in your project
  3. Read https://stackoverflow.com/questions/tagged/gitlab-ci?tab=Votes
  4. Learn about GitLab Pipeline emails notifications: https://docs.gitlab.com/ee/user/project/integrations/pipeline_status_emails.html

Related terms[edit]

See also[edit]


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: