image: docker.gitlab.gwdg.de/fissg/fissg:main
stages:
  - build
  - deploy


site:
  stage: build
  before_script:
    - git clone https://gitlab.gwdg.de/GAUMI-fginfo/fg-website-data.git content
  script:
    - /opt/fissg.py
  artifacts:
    paths:
      - "./public/"
  only:
    - master

pages:
  stage: deploy
  needs: [ "site" ]
  script:
    - echo "Deploying ./public/"
  artifacts:
    paths:
      - "./public/"
  only:
    - master