.gitlab-ci.yml 621 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
variables:
  JEKYLL_ENV: production

before_script:
  - cd srctweb/
  - bundle install

build:
  stage: build
16 17 18
  before_script:
  - cd srctweb/
  - bundle install
David Haynes's avatar
David Haynes committed
19
  script:
20
  - bundle exec jekyll build --trace -d '../build'
David Haynes's avatar
David Haynes committed
21 22
  artifacts:
    paths:
Michael T Bailey's avatar
Michael T Bailey committed
23
    - build
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
    
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