-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
49 lines (44 loc) · 1.14 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
stages:
- docker
- build
- check
image: "$CI_REGISTRY_IMAGE"
## Docker stage ##################################################################
docker:
stage: docker
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/docker
services:
- $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/docker:dind
tags:
- dind
- privileged
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
script:
- docker pull "$CI_REGISTRY_IMAGE" || true
- docker build --pull --cache-from "$CI_REGISTRY_IMAGE" --tag "$CI_REGISTRY_IMAGE" --file .gitlab-ci/Dockerfile .gitlab-ci
- docker push "$CI_REGISTRY_IMAGE"
## Build stage ###################################################################
build:
stage: build
needs:
- job: docker
artifacts: false
script:
- ./configure -f /feeds.conf
- make
artifacts:
paths:
- '.config.mk'
- 'output/'
## Check stage ###################################################################
lint:
stage: check
needs: [build]
script:
- make lint
test:
stage: check
needs: [build]
script:
- make -k test