.gitlab-ci.yml 316 Bytes
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1
image: node:8.11.3-alpine
Eugen Rochko's avatar
Eugen Rochko committed
2

Eugen Rochko's avatar
Eugen Rochko committed
3 4 5
pages:
  cache:
    paths:
Eugen Rochko's avatar
Eugen Rochko committed
6
      - node_modules
Eugen Rochko's avatar
Eugen Rochko committed
7
    
Eugen Rochko's avatar
Eugen Rochko committed
8
  script:
Eugen Rochko's avatar
Eugen Rochko committed
9
    - apk -U upgrade && apk add -t build-dependencies build-base python 
Eugen Rochko's avatar
Eugen Rochko committed
10 11
    - yarn install --pure-lockfile
    - yarn build
Eugen Rochko's avatar
Eugen Rochko committed
12
    - rm -rf public && mv build public
Eugen Rochko's avatar
Eugen Rochko committed
13

Eugen Rochko's avatar
Eugen Rochko committed
14 15
  artifacts:
    paths:
Eugen Rochko's avatar
Eugen Rochko committed
16 17
      - public

Eugen Rochko's avatar
Eugen Rochko committed
18 19
  only:
    - master