# 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

pages:
  stage: deploy
  script:
    - pwd
    - ls
    - ls ..
    - ls ../public
    - cd web
    - hugo -D
    - ls
    - mv public ../public
    - ls ..
    - ls ../public
  artifacts:
    paths:
      - public
  only:
    - master
