-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
50 lines (44 loc) · 792 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
42
43
44
45
46
47
48
49
variables:
DOCKER_TAG: ${CI_COMMIT_REF_NAME}
DOCKER_IMAGE: rwthacs/hugo-ext
before_script:
- git config --local core.longpaths true
- git submodule sync --recursive
- git submodule update --init --recursive
stages:
- prepare
- build
- deploy
docker:
stage: prepare
script:
- docker build
--tag ${DOCKER_IMAGE}:${DOCKER_TAG}
--tag ${DOCKER_IMAGE}:latest .
tags:
- shell
- linux
hugo:
stage: build
script:
- npm install -D --save autoprefixer
- npm install -D --save postcss-cli
- hugo
image: ${DOCKER_IMAGE}:${DOCKER_TAG}
artifacts:
paths:
- public
tags:
- docker
pages:
stage: deploy
script:
- ls -l
artifacts:
paths:
- public
only:
- master
tags:
- shell
- linux