.gitlab-ci.yml 602 Bytes
Newer Older
1 2 3 4
stages:
  - build
  - deploy

David Haynes's avatar
David Haynes committed
5 6 7 8
variables:
  JEKYLL_ENV: production

build:
Nicholas J Anderson's avatar
Nicholas J Anderson committed
9
  image: ruby:2.3
David Haynes's avatar
David Haynes committed
10 11
  stage: build
  script:
Nicholas J Anderson's avatar
Nicholas J Anderson committed
12 13 14
    - cd srctweb/
    - bundle install
    - bundle exec jekyll build --trace -d '../build'
David Haynes's avatar
David Haynes committed
15 16
  artifacts:
    paths:
Nicholas J Anderson's avatar
Nicholas J Anderson committed
17
      - build
Nicholas J Anderson's avatar
Nicholas J Anderson committed
18 19
    
deploy_staging:
Nicholas J Anderson's avatar
Nicholas J Anderson committed
20
  image: alpine
Nicholas J Anderson's avatar
Nicholas J Anderson committed
21 22
  stage: deploy
  script:
Nicholas J Anderson's avatar
Nicholas J Anderson committed
23
    - echo 'Deploy bot awayyy';
Nicholas J Anderson's avatar
Nicholas J Anderson committed
24 25 26 27 28
  environment:
    name: staging
    url: https://srct.gmu.io

deploy_production:
Nicholas J Anderson's avatar
Nicholas J Anderson committed
29
  image: alpine
Nicholas J Anderson's avatar
Nicholas J Anderson committed
30
  stage: deploy
Nicholas J Anderson's avatar
Nicholas J Anderson committed
31 32
  script:
    - echo "Deploy bot awayyyyy"
Nicholas J Anderson's avatar
Nicholas J Anderson committed
33 34 35 36 37 38 39
  environment:
    name: production
    url: https://srct.gmu.edu
  when: manual
  only:
    - master