-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
36 lines (32 loc) · 1.02 KB
/
.gitlab-ci.yml
File metadata and controls
36 lines (32 loc) · 1.02 KB
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
stages:
- test
- deploy
.run_on_dockerhost: &run_on_dockerhost
tags:
- docker20
image: "${DOCKER_ACCESS_URL}/other/dockerdev/documentation:latest"
linkcheck:
<<: *run_on_dockerhost
stage: test
allow_failure: true
script:
- python3 -msphinx -W -b linkcheck . _build/linkcheck
build:
<<: *run_on_dockerhost
stage: test
script:
- python3 -msphinx -W -b html . _build/html
deploy:
<<: *run_on_dockerhost
stage: deploy
rules:
- if: $CI_COMMIT_BRANCH == "master"
when: on_success
- when: never
script:
- python3 -msphinx -b html . _build/html
- python3 -msphinx.ext.intersphinx _build/html/objects.inv > _build/html/help_index_languagereference.txt
- cp -r _build/html language-reference
- az storage copy -s 'language-reference' --recursive --destination-container '$web' -- --overwrite=true --as-subdir=true
- bash load_ssh_key_for_deploy.sh
- rsync -rt --delete-excluded _build/html/ [email protected]:/home/aimms/www/documentation.aimms.com/language-reference