forked from tarantool/doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
27 lines (26 loc) · 936 Bytes
/
.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
website-full-deploy:
tags:
- docker
image: "registry.gitlab.com/tarantool/doc"
script:
- cmake . && make
- echo ${RSYNC_PASSWORD} > rsync.password
- chmod 600 rsync.password
- rsync -Pav --password-file=rsync.password output/
${RSYNC_USER}@${RSYNC_HOST}::tarantool-org/
- rm -f rsync.password
only: [ "1.9" ]
website-doc-deploy:
tags:
- docker
image: "registry.gitlab.com/tarantool/doc"
script:
- cmake . && make
- echo ${RSYNC_PASSWORD} > rsync.password
- chmod 600 rsync.password
- rsync -Pav --password-file=rsync.password output/en/doc/${CI_COMMIT_REF_NAME}/
${RSYNC_USER}@${RSYNC_HOST}::tarantool-org/en/doc/${CI_COMMIT_REF_NAME}/
- rsync -Pav --password-file=rsync.password output/ru/doc/${CI_COMMIT_REF_NAME}/
${RSYNC_USER}@${RSYNC_HOST}::tarantool-org/ru/doc/${CI_COMMIT_REF_NAME}/
- rm -f rsync.password
only: [ "1.6", "1.9", "2.0" ]