image: eicweb.phy.anl.gov:4567/containers/eic_container/node:15.12

stages:
  - build
  - deploy

# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
  paths:
    - node_modules/

pages:
  stage: deploy
  script:
    - npm install
    - ./node_modules/.bin/gatsby build --prefix-paths
  artifacts:
    paths:
      - public
  retry:
    max: 2
