.gitlab-ci.yml 522 Bytes
Newer Older
1
image: node:latest
2

3
build:
David Haynes's avatar
cleanup  
David Haynes committed
4
  script:
David Haynes's avatar
David Haynes committed
5 6
    - yarn
    - npm install -g gulp
David Haynes's avatar
David Haynes committed
7 8 9 10 11
    - gulp build
  artifacts:
    paths:
      - build/js
      - build/css
David Haynes's avatar
David Haynes committed
12 13
  only:
    - master
14 15 16

pages:
  script:
David Haynes's avatar
David Haynes committed
17 18
    - yarn
    - npm install -g gulp
19
    - gulp build
David Haynes's avatar
David Haynes committed
20 21
    - mkdir public
    - mv build/* public
22 23
  artifacts:
    paths:
David Haynes's avatar
David Haynes committed
24
      - public
David Haynes's avatar
David Haynes committed
25 26
  only:
    - master
David Haynes's avatar
David Haynes committed
27 28 29 30

deploy:
  image: python:latest
  script:
David Haynes's avatar
David Haynes committed
31 32
  - pip install s3cmd 
  - s3cmd put ./build/ s3://srct/masonstrap/ --recursive --host=nyc3.digitaloceanspaces.com
David Haynes's avatar
David Haynes committed
33 34
  only:
  - master