.gitlab-ci.yml 761 Bytes
Newer Older
Florent Chehab's avatar
Florent Chehab committed
1 2
image: blang/latex

3
building-latex:
Florent Chehab's avatar
Florent Chehab committed
4 5 6 7 8
  stage: build
  script:
    - apt-get update --yes
    - apt-get install imagemagick --yes
    - apt-get install wget --yes
Florent Chehab's avatar
Florent Chehab committed
9 10
    - bash build.sh get_assets
    - bash build.sh make
Florent Chehab's avatar
Florent Chehab committed
11 12 13 14 15 16 17
  artifacts:
    paths:
      - lettre-UTC-ex.pdf
      - latex-lettre-UTC.zip
      - lettre-ex-0.png
      - lettre-ex-1.png
      
18
    expire_in: 2 week
Florent Chehab's avatar
Florent Chehab committed
19 20 21
  tags:
    - docker

22 23
pages:
  stage: deploy
Florent Chehab's avatar
Florent Chehab committed
24
  script:
25 26 27 28 29 30
    - mkdir .public
    - cp lettre-UTC-ex.pdf .public
    - cp latex-lettre-UTC.zip .public
    - cp lettre-ex-0.png .public
    - cp lettre-ex-1.png .public
    - mv .public public
Florent Chehab's avatar
Florent Chehab committed
31 32
  artifacts:
    paths:
33 34 35
      - public
  only: # publication sur GitLab pages uniquement pour 
    - master   # la branche master
Florent Chehab's avatar
Florent Chehab committed
36 37
  tags:
    - docker