-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitlab-ci.yml
39 lines (36 loc) · 936 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
stages:
- build
- pages
build:
extends: .docker
stage: build
variables:
PAGES_BUILD_DIR: "public"
GITLAB_DOCKER_BUILD: ${CI_REGISTRY}/ci-utilities/ci-commands/gitlab-docker-build
BUILD: ${CI_REGISTRY}/${CI_PROJECT_PATH}/build-ci:iid-${CI_PIPELINE_IID}
script:
- dind-run "${GITLAB_DOCKER_BUILD}" --cache-from master build .
- dind-run "${BUILD}" Rscript -e "rmarkdown::render_site(output_format = 'bookdown::gitbook', encoding = 'UTF-8')"
artifacts:
paths:
- public
pages:
extends: .docker
stage: pages
script:
- "# Nothing to do here, just passing along artifacts"
artifacts:
paths:
- public
environment:
name: "weinbergerlab.gitlab.io/git-going"
url: "http://weinbergerlab.gitlab.io/git-going"
only:
- master
- gitlab-ci
.docker:
tags:
- docker
image: ${CI_REGISTRY}/ci-utilities/ci-commands/dind-ci
services:
- docker:19.03.1-dind