.gitlab-ci.yml
파일에서 CI/CD 와 관련된 configuration 을 작성 할 수 있다.
script => job => stages => pipeline 순서대로
다양한 script 가 job 단위로 묶이게 되고,
job 들이 하나의 stage 를 구성하며,
stage 들이 모여 전체 pipeline 을 구축하게 된다.
그래서 .gitlab-ci.yml
의 구조를 보게 되면 다음과 같다.
stages:
- s1
- s2
job1:
stage: s1
script:
- echo job1
job2:
stage: s2
script:
- echo job2
[.gitlab-ci.yml file] https://docs.gitlab.com/ee/ci/yaml/gitlab_ci_yaml.html
[CI/CD templates] https://docs.gitlab.cn/14.0/ee/ci/examples/README.html#cicd-templates