blob: 60ff708c2aac0c3bed2353d92c0cb242dc23eff6 (
plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/nanoc
image: ruby:2.3
cache:
key: "ruby-231"
paths:
- vendor/ruby
stages:
- test
- deploy
before_script:
- bundle install --jobs 4 --path vendor
verify_compile:
stage: test
script:
- rake pull_repos
- nanoc
artifacts:
paths:
- public
expire_in: 1w
except:
- master
tags:
- docker
scss_lint:
stage: test
script:
- bundle exec scss-lint
tags:
- docker
review:
stage: deploy
before_script: []
script:
- rsync -av --delete public /srv/nginx/pages/$CI_BUILD_REF_NAME
environment:
name: review/$CI_BUILD_REF_NAME
url: http://$CI_BUILD_REF_NAME.$APPS_DOMAIN
on_stop: review_stop
only:
- branches
except:
- master
tags:
- nginx
- review-apps
review_stop:
stage: deploy
before_script: []
artifacts: {}
cache: {}
script:
- rm -rf public /srv/nginx/pages/$CI_BUILD_REF_NAME
when: manual
environment:
name: review/$CI_BUILD_REF_NAME
action: stop
only:
- branches
except:
- master
tags:
- nginx
- review-apps
pages:
stage: deploy
environment:
name: production
url: https://docs.gitlab.com
script:
- rake pull_repos
- nanoc
# Symlink all README.html to index.html
- for i in `find public -name README.html`; do ln -sf README.html $(dirname $i)/index.html; done
artifacts:
paths:
- public
only:
- master
tags:
- docker
|