.gitlab-ci.yml 392 Bytes
Newer Older
1
stages:
Guillaume Perréal's avatar
Guillaume Perréal committed
2 3 4
  - build

build:
5
  image: node:10-alpine
6
  stage: build
Guillaume Perréal's avatar
Guillaume Perréal committed
7
  tags: [docker]
8
  interruptible: true
Guillaume Perréal's avatar
Guillaume Perréal committed
9 10
  variables:
    NPM_CONFIG_CACHE: "$CI_PROJECT_DIR/.npm"
11 12
  before_script:
    - apk update && apk add make
Guillaume Perréal's avatar
Guillaume Perréal committed
13
  script:
14
    - make
Guillaume Perréal's avatar
Guillaume Perréal committed
15 16 17 18 19 20 21 22 23
  artifacts:
    name: dist
    expire_in: 2 years
    paths:
      - dist/
  cache:
    key: "$CI_COMMIT_REF_NAME-npm"
    paths:
      - "$NPM_CONFIG_CACHE"