.gitlab-ci.yml 783 Bytes
Newer Older
John Jarvis's avatar
John Jarvis committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
stages:
  - build
  - deploy

before_script:
  - git submodule update --init --recursive
  - pip install -r requirements.txt

build:
  image: registry.gitlab.com/jarv/jarv.org/ci-image
  stage: build
  script:
    - make clean
    - make html

deploy_draft:
  image: registry.gitlab.com/jarv/jarv.org/ci-image
  stage: deploy
  script:
    - make clean
    - export S3_BUCKET=draft.jarv.org
John Jarvis's avatar
John Jarvis committed
22
    - export DISTID=E1B0Q0MMPJQ79F
John Jarvis's avatar
John Jarvis committed
23
    - make s3_upload
John Jarvis's avatar
John Jarvis committed
24 25 26
  environment:
    name: draft
    url: https://draft.jarv.org
John Jarvis's avatar
John Jarvis committed
27 28 29 30 31 32 33

deploy_prod:
  image: registry.gitlab.com/jarv/jarv.org/ci-image
  stage: deploy
  script:
    - make clean
    - export S3_BUCKET=jarv.org
John Jarvis's avatar
John Jarvis committed
34
    - export DISTID=EEN9NFVIDRTGS
John Jarvis's avatar
John Jarvis committed
35
    - make s3_upload
John Jarvis's avatar
John Jarvis committed
36 37 38
  environment:
    name: jarv
    url: https://jarv.org
John Jarvis's avatar
John Jarvis committed
39 40
  only:
    - master