.gitlab-ci.yml 613 Bytes
Newer Older
David Haynes's avatar
David Haynes committed
1 2
image: ruby:2.3

3 4 5 6
stages:
  - build
  - deploy

David Haynes's avatar
David Haynes committed
7 8 9 10 11 12 13 14 15 16
variables:
  JEKYLL_ENV: production

before_script:
  - cd srctweb/
  - bundle install

build:
  stage: build
  script:
17
  - bundle exec jekyll build --trace -d '../build'
David Haynes's avatar
David Haynes committed
18 19
  artifacts:
    paths:
Michael T Bailey's avatar
Michael T Bailey committed
20
    - build
21 22 23
    
deploy_staging:
  stage: deploy
24
  image: ubuntu:16.04
25 26 27 28 29 30 31 32
  script:
  - echo 'Deploy bot awayyy';
  environment:
    name: staging
    url: https://srct.gmu.io

deploy_production:
  stage: deploy
33
  image: ubuntu:16.04
34 35 36 37 38 39 40 41
  script: echo "Deploy bot awayyyyy"
  environment:
    name: production
    url: https://srct.gmu.edu
  when: manual
  only:
    - master