.gitlab-ci.yml 519 Bytes
Newer Older
florck's avatar
florck committed
1
image: registry.duniter.org/docker/ubuntu-tex:17.10-DUNITER-2
florck's avatar
florck committed
2

florck's avatar
florck committed
3 4
pages:
  stage: deploy
florck's avatar
florck committed
5 6 7
  environment:
    name: production
    url: http://$CI_PROJECT_NAMESPACE.pages.duniter.org/$CI_PROJECT_NAME
florck's avatar
florck committed
8 9
  tags:
    - pages
florck's avatar
florck committed
10
  script:
florck's avatar
florck committed
11
    - sed -i "s|##CI_ENVIRONMENT_URL##|${CI_ENVIRONMENT_URL}|g" index.html
florck's avatar
florck committed
12
    - cat index.html
florck's avatar
florck committed
13
    - pdflatex main.tex
florck's avatar
florck committed
14
    - pdflatex main.tex
florck's avatar
florck committed
15
    - mkdir .public
Florian Thöni's avatar
Florian Thöni committed
16
    - cp -r includes index.html main.pdf .public
florck's avatar
florck committed
17
    - mv .public public
florck's avatar
florck committed
18 19
  artifacts:
    paths:
florck's avatar
florck committed
20 21 22 23
    - public
  only:
  - master