Symbols << & * in .gitlab-ci.yml

Viewed 20

What's do &build_project and <<: *build_project mean? Do I understand right that this is a command to insert a chunk with the name of build_project to deploy stage?

.build_project: &build_project
  tags:
    - docker
  stage: deploy
  before_script:
  ...
  script:
  ...


deploy:
 variables:
   DEPLOY_HOST: ...
   DEPLOY_PATH: ...
   LOCAL_PATH: ...
 <<: *build_project
 only:
   - dev

0 Answers
Related