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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
image: sphinxdoc/sphinx:latest
stages:
- docs
- deploy
################################################################################
# Build Docs
################################################################################
docs:userguide:
image: sphinxdoc/sphinx:latest
script:
- make -C docs
- make -C docs/picvva
stage: build-docs
except:
- schedules
artifacts:
name: $CI_JOB_NAME
expire_in: 1 week
paths:
- webroot/docs_html
tags:
- docker
################################################################################
# Deploy
################################################################################
deploy:docs:
needs: ['docs:userguide']
image: amazon/aws-cli:latest
variables:
DOC_HOME: ${CI_PROJECT_DIR}/doc-staging
script:
- mv webroot/docs_html ${DOC_HOME}
- aws s3 sync ${DOC_HOME} s3://exa-doc/user-manual/$CI_COMMIT_TAG --acl public-read
dependencies:
- docs:userguide
except:
- schedules
only:
- tags
tags:
- docker