.gitlab-ci.yml 479 Bytes
Newer Older
Gerson SUNYE's avatar
Gerson SUNYE committed
1
image: docker-registry.univ-nantes.fr/sunye-g/docker-asciidoctor-revealjs
Gerson Sunyé's avatar
Gerson Sunyé committed
2 3 4 5 6 7 8 9

stages:
  - build
  - deploy
  
build:
  stage: build
  script:
10 11
#   - bundle install
   - make slides
12 13 14
  artifacts:
    paths:
      - target
Gerson Sunyé's avatar
Gerson Sunyé committed
15

Gerson Sunyé's avatar
Gerson Sunyé committed
16 17 18
book:
  stage: build
  script:
19
#    - bundle install
Gerson Sunyé's avatar
Gerson Sunyé committed
20 21 22 23 24
    - make book
  artifacts:
    paths:
      - target/book

Gerson Sunyé's avatar
Gerson Sunyé committed
25 26
pages:
  stage: deploy
Gerson Sunyé's avatar
Gerson Sunyé committed
27
  script:
28 29
   - mkdir -p public
   - rsync -r target/site/ public
Gerson Sunyé's avatar
Gerson Sunyé committed
30 31
  artifacts:
    paths:
Gerson Sunyé's avatar
Gerson Sunyé committed
32
      - public
Gerson Sunyé's avatar
Gerson Sunyé committed
33
  only:
34
    - master