.gitlab-ci.yml 539 Bytes
Newer Older
David Haynes's avatar
David Haynes committed
1 2 3 4 5 6 7 8 9 10 11 12
image: ruby:2.3

variables:
  JEKYLL_ENV: production

before_script:
  - cd srctweb/
  - bundle install

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

deploy_production:
  stage: deploy
  script: echo "Deploy bot awayyyyy"
  environment:
    name: production
    url: https://srct.gmu.edu
  when: manual
  only:
    - master