-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
58 lines (52 loc) · 1.1 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
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
GIT_SUBMODULE_STRATEGY: recursive
services:
- docker:dind
stages:
- build
- deploy
before_script:
- apk --no-cache add make git
- git config --system user.name builder
- git config --system user.email builder@runner$CI_RUNNER_ID
- addgroup builder
- adduser -D -s /bin/sh -G builder builder
- su builder -c 'make docker-imgbase-reload'
- su builder -c 'make docker-img-build'
build:
stage: build
cache:
key: ${CI_JOB_NAME}
paths:
- build/downloads/
- build/sstate-cache/
- build/docker-cache/
tags:
- docker
- nature-image-builder
script:
- su builder -c 'make docker-env-from-env'
- su builder -c 'make'
- su builder -c 'make tests-run'
artifacts:
reports:
junit: build-reports/report.xml
pages:
stage: deploy
cache:
key: ${CI_JOB_NAME}
paths:
- build/docker-cache/
tags:
- docker
script:
- su builder -c 'make doc-html'
- cp -a build/documents/html/ public/
artifacts:
expire_in: 1 day
paths:
- public
only:
- master