forked from LLNL/HPC-Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
41 lines (38 loc) · 849 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
variables:
JEKYLL_ENV: production
PATH: /usr/global/tools/ruby/toss_3_x86_64_ib/bin:/usr/bin:/bin
GEM_HOME: /usr/global/tools/ruby/toss_3_x86_64_ib/lib/ruby/gems
SITE_HOME: /usr/global/web-pages/www-lc/docs
before_script:
- echo $PATH
- echo $GEM_HOME
# NOTE: Jeff Long (jwlong) owns the /collab/usr/global/tools/ruby install and only he should install things
# - bundle install
test:
stage: test
tags:
- shell
- toss_3_x86_64
script:
- test -d $SITE_HOME
- bundle exec jekyll build -d test
artifacts:
paths:
- test
# except:
# - main
deploy:
stage: deploy
tags:
- shell
- toss_3_x86_64
script:
- bundle exec jekyll build -d public
- rsync -r --delete public/ $SITE_HOME/
after_script:
- chmod -R g+rwX,o+rX $SITE_HOME/ 2>/dev/null
artifacts:
paths:
- public
only:
- main