This repository has been archived by the owner on Mar 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
68 lines (65 loc) · 1.6 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
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
variables:
REMOTE: [email protected]:forestguild/website.git
stages:
- build
- deploy
- test
build website:
image: jekyll/jekyll
stage: build
only:
- master
before_script:
- bundle install
script:
- bundle exec jekyll updateprogress
- bundle exec jekyll attendance --team 15620 --name main
- bundle exec jekyll attendance --team 15829 --name static
- bundle exec jekyll wowaffixes --region eu
- bundle exec jekyll wowdaily
- bundle exec jekyll build
after_script:
- echo "forestguild.club" > _site/CNAME
artifacts:
name: pages
paths:
- _site/
tags:
- docker
deploy:
image: alpine:latest
stage: deploy
only:
- master
before_script:
- apk add --no-cache git openssh-client
- mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host *\n\tStrictHostKeyChecking no" > ~/.ssh/config
- eval $(ssh-agent -s)
- ssh-add
- rm -rf .git
script:
- cd _site
- git init
- git remote add origin $REMOTE
- git config user.email "[email protected]"
- git config user.name GitlabCI
- git add --all
- git commit -a -q -m Update
- git push --no-thin --force origin HEAD:gh-pages
tags:
- docker
pagespeed:
image: docker:stable
stage: test
services:
- docker:dind
only:
- master
script:
- sleep 60 # Wait a min for cache update
- docker run --rm rakshazi/psi https://forestguild.club https://forestguild.club/mythic https://forestguild.club/wiki/start/gear https://forestguild.club/amp/wiki/start/gear
tags:
- docker