# CI Deployment Configurations

Build steps are contained within the .gitlab-ci.yml file.

This file needs to be at the root of the git repository...in each branch that is used for deployments.

More details: <http://doc.gitlab.com/ci/yaml/README.html>

Simple Template:

```yaml
Description of build job here:

    # The following are build and/or deploy steps 
    # Execution occurs line-by-line

    script: 
        - ls
        - cp * /u/gituser1/public_html/
        - [additional build steps ]

    # only deploy if the push is into the 'master' branch

    only:
        - master
    stage: deploy
```

Template for branch-based model:

```yaml
Deploy to DEV:
  script:
  - ls
  stage: deploy
  tags:
  - DEV
  only:
  - development
Deploy to TST:
  script:
  - ls 
  stage: deploy
  tags:
  - TST
  only:
  - test
Deploy to PRD:
  script:
  - ls 
  stage: deploy
  tags:
  - PRD
  only:
  - production
```
