-
Notifications
You must be signed in to change notification settings - Fork 40
/
.gitlab-ci.yml
43 lines (40 loc) · 1 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
image: docker:stable
stages:
- build
- deploy
build:
stage: build
image: node:12.20.0-alpine3.9
script:
- apk add --update git python2 py2-setuptools
- easy_install-2.7 pip==20.3.4
- pip install "cython<3.0.0"
- pip install PyYaml==5.3.1
- pip install mkdocs==1.0.4 mkdocs-material==4.5.0
- yarn install --network-timeout 600000 --ignore-engines
- cp config/environment.js.tpl config/environment.js
- ./node_modules/.bin/ember khartis:build --environment=production --thumbnails=false
environment:
name: $CI_COMMIT_REF_SLUG
artifacts:
paths:
- dist
expire_in: 1 week
only:
- master
- production
deploy:
stage: deploy
image: instrumentisto/rsync-ssh
dependencies:
- build
environment:
name: $CI_COMMIT_REF_SLUG
variables:
GIT_STRATEGY: none
script:
- chmod o-rwx $RSYNC_PASSWORD_FILE
- rsync -avz --password-file=$RSYNC_PASSWORD_FILE dist/ $RSYNC_USER@$RSYNC_HOST::$RSYNC_MODULE/
only:
- master
- production