Created
          July 6, 2018 07:34 
        
      - 
      
- 
        Save thienn1107/c775b8b99edd5c50ca1a8dc51c09b3ff to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | stages: | |
| - build-stg | |
| - deploy-stg | |
| build-stg: | |
| stage: build-stg | |
| script: | |
| - cp .env.example.stg .env | |
| - echo $CI_PROJECT_DIR | |
| - npm install | |
| - sed -i 's/CI_PRO_DB_HOST/'"$CI_STG_DB_HOST"'/' .env | |
| - sh /home/gitlab-runner/stg-admin-chat-robin.build.sh | |
| environment: | |
| name: staging | |
| url: https://xxx.com | |
| tags: | |
| - STAGING | |
| only: | |
| - staging | |
| deploy-stg: | |
| stage: deploy-stg | |
| script: | |
| - sh /home/gitlab-runner/stg-admin-chat-robin-deploy.sh | |
| environment: | |
| name: staging | |
| url: https://xxx.com | |
| tags: | |
| - STAGING | |
| only: | |
| - staging | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment