.gitlab-ci.yml 590 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
image: 
  name: $CI_REGISTRY/danet/internetworking/mdbook:latest
  entrypoint:
    - ''

before_script:
  - find . -name '*.dot' | xargs dot -T svg -O

test:
  stage: test
  script:
    - mdbook build --dest-dir public
  rules:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
    
# the 'pages' job will deploy and build your site to the 'public' path
pages:
  stage: deploy
  script:
    - mdbook build --dest-dir public
  artifacts:
    paths:
      - public
    expire_in: 1 week
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH  # this job will affect only the 'main' branch