# All available Hugo versions are listed here: https://gitlab.com/pages/hugo/container_registry
# image: forge.univ-lyon1.fr:4567/emmanuel.coquery/emmanuel.coquery.pages.univ-lyon1.fr/hugo:latest
image: harbor.pagoda.os.univ-lyon1.fr/ecoquery-hugo/hugo:latest

variables:
  GIT_SUBMODULE_STRATEGY: recursive

test:
  script:
    - pwd
    - ls
    - ls ..
    - mkdir -p ../public
    - mkdir -p public
    - echo toto > ../public/index.html
    - echo toto > public/index.html
    - ls ../public
    - ls public
    - cd web
    - hugo -D
    - ls
    - pwd
    - mv public ../public/m1if37
    - ls ../public
  except:
    - master

pages:
  script:
    - hugo
  artifacts:
    paths:
      - public
  only:
    - master
