-
Notifications
You must be signed in to change notification settings - Fork 27
/
.gitlab-ci.yml
57 lines (52 loc) · 1.28 KB
/
.gitlab-ci.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
variables:
# GIT_STRATEGY: fetch
CI_SCRATCH: /home/xl_ci/ci_scratch
before_script:
- module load common
stages:
- release
- deploy
deploy_doc:
stage: release
retry: 1
only:
refs:
- master
changes:
- doc/source/**/**/**/**/*
artifacts:
name: "nuclei_board_labs_doc-${CI_COMMIT_SHA::8}"
paths:
- doc/build
expire_in: 2 day
script:
- cd doc
- pip3 install --user -r requirements.txt
- export PATH=$HOME/.local/bin:$PATH
- make clean
- make all
- ssh xl01 "rm -rf /home/xl_ci/doc_center/nuclei_board_labs/*"
- ssh xl01 "mkdir -p /home/xl_ci/doc_center/nuclei_board_labs/"
- cd build
- scp -r html xl01:/home/xl_ci/doc_center/nuclei_board_labs
- cd ..
#- make linkcheck
- make latexpdf
- cp build/latex/*.pdf build/html/
tags:
- software-server
deploy_website:
stage: deploy
when: on_success
only:
refs:
- master
changes:
- doc/source/**/**/**/**/*
retry: 1
script:
- ./.ci/ftp_deploy.sh $FTPUSER $FTPPWD $FTPSERVER doc/build/html nuclei_board_labs
tags:
- software-server
dependencies:
- deploy_doc