-
-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
26 lines (24 loc) · 759 Bytes
/
.gitlab-ci.yml
File metadata and controls
26 lines (24 loc) · 759 Bytes
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
.deploy: &deploy
image: dock.mau.dev/tulir/docker-mdbook
tags: [webdeploy]
script:
- rsync -rcthvl bookshelf/ $TARGET/
- rsync -rcthvl python/ $TARGET/python/
- mdbook build bridges && rsync -rcthvl --delete dist/bridges/html/ $TARGET/bridges/
- mdbook build maubot && rsync -rcthvl --delete dist/maubot/html/ $TARGET/maubot/
- mdbook build gomuks && rsync -rcthvl --delete dist/gomuks/html/ $TARGET/gomuks/
- mdbook build meowlnir && rsync -rcthvl --delete dist/meowlnir/html/ $TARGET/meowlnir/
master:
<<: *deploy
variables:
TARGET: /srv/web/docs.mau.fi
only:
- master
staging:
<<: *deploy
variables:
TARGET: /srv/web/docs.mau.fi/staging/$CI_COMMIT_REF_NAME
before_script:
- mkdir -p $TARGET
except:
- master