.gitlab-ci.yml 1.12 KB
Newer Older
Erwan BOUSSE's avatar
Erwan BOUSSE committed
1 2
image: asciidoctor/docker-asciidoctor

Erwan BOUSSE's avatar
Erwan BOUSSE committed
3
stages:
4 5
  - build1
  - build2
Erwan Bousse's avatar
Erwan Bousse committed
6
  - test
Erwan Bousse's avatar
Erwan Bousse committed
7
  - deploy
Erwan BOUSSE's avatar
Erwan BOUSSE committed
8

Erwan Bousse's avatar
Erwan Bousse committed
9
book:
Erwan BOUSSE's avatar
Erwan BOUSSE committed
10
  image: asciidoctor/docker-asciidoctor
11
  stage: build2
Erwan Bousse's avatar
Erwan Bousse committed
12
  only:
Erwan Bousse's avatar
Erwan Bousse committed
13 14
    refs:
      - master
Erwan BOUSSE's avatar
Erwan BOUSSE committed
15
  script:
Erwan Bousse's avatar
Erwan Bousse committed
16 17
    - make bookweb
    - make bookpdf
Erwan Bousse's avatar
Erwan Bousse committed
18
    - make redirection
19
    - make retainpdfs
Erwan BOUSSE's avatar
Erwan BOUSSE committed
20 21
  artifacts:
    paths:
Erwan BOUSSE's avatar
Erwan BOUSSE committed
22
    - public
Erwan BOUSSE's avatar
Erwan BOUSSE committed
23

Erwan BOUSSE's avatar
Erwan BOUSSE committed
24

Erwan Bousse's avatar
Erwan Bousse committed
25
slides:
Erwan BOUSSE's avatar
Erwan BOUSSE committed
26
  image: "docker-registry.univ-nantes.fr/sunye-g/docker-asciidoctor-revealjs:30"
27
  stage: build2
Erwan Bousse's avatar
Erwan Bousse committed
28
  only:
Erwan Bousse's avatar
Erwan Bousse committed
29 30
    refs:
      - master
Erwan BOUSSE's avatar
Erwan BOUSSE committed
31 32
  script:
    - make slidesweb
33
    - make retainpdfs
Erwan BOUSSE's avatar
Erwan BOUSSE committed
34 35 36 37
  artifacts:
    paths:
    - public

Erwan BOUSSE's avatar
Erwan BOUSSE committed
38
resources:
Erwan Bousse's avatar
Erwan Bousse committed
39
  image: docker-registry.univ-nantes.fr/bousse-e/docker-drawio
40
  stage: build1
41 42 43 44
  cache:
    key: ${CI_COMMIT_REF_SLUG}
    paths:
    - public
Erwan Bousse's avatar
Erwan Bousse committed
45
  only:
Erwan Bousse's avatar
Erwan Bousse committed
46 47
    refs:
      - master
Erwan BOUSSE's avatar
Erwan BOUSSE committed
48
  script:
Erwan Bousse's avatar
Erwan Bousse committed
49
    - make resources
50
    - make retainpdfs
Erwan BOUSSE's avatar
Erwan BOUSSE committed
51 52
  artifacts:
    paths:
Erwan BOUSSE's avatar
Erwan BOUSSE committed
53
    - public
Erwan BOUSSE's avatar
Erwan BOUSSE committed
54

Erwan Bousse's avatar
Erwan Bousse committed
55 56
check-links:
  stage: test
57 58 59
  only:
    refs:
      - master
60 61 62
  image: 
    name: linkchecker/linkchecker
    entrypoint: [""]
Erwan Bousse's avatar
Erwan Bousse committed
63
  script:
Erwan Bousse's avatar
Erwan Bousse committed
64
  - make check
65
  - make retainpdfs
Erwan Bousse's avatar
Erwan Bousse committed
66 67 68

pages:
  stage: deploy
69 70 71
  only:
    refs:
      - master
Erwan Bousse's avatar
Erwan Bousse committed
72
  script:
73 74
  - make retainpdfs
  - echo "Nothing else to do."
Erwan Bousse's avatar
Erwan Bousse committed
75 76 77
  artifacts:
    paths:
    - public