forked from ntpsec/ntpsec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-docker-ci.yml
86 lines (65 loc) · 1.63 KB
/
.gitlab-docker-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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
.build_template: &build_definition
variables:
# Try to save some time by only grabbing the most recent commit
GIT_DEPTH: '1'
stage: build
image: docker
services:
- docker:dind
script:
- IMAGE_NAME=${CI_JOB_NAME/build-/}
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest || true
- >
docker build
--pull
--cache-from $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest
--rm=false
--tag $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest .
--file .dockerfiles/$IMAGE_NAME
- docker push $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest
allow_failure: true
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
build-alpine:
<<: *build_definition
build-alpine-edge:
<<: *build_definition
build-alpine-pages:
<<: *build_definition
build-alpine-seccomp:
<<: *build_definition
build-centos-latest:
<<: *build_definition
build-clang:
<<: *build_definition
build-coverity:
<<: *build_definition
build-debian-oldstable:
<<: *build_definition
build-debian-stable:
<<: *build_definition
build-debian-stable-i386:
<<: *build_definition
build-debian-stable-mdns:
<<: *build_definition
build-debian-testing:
<<: *build_definition
build-debian-unstable:
<<: *build_definition
build-fedora-latest:
<<: *build_definition
build-gentoo:
<<: *build_definition
build-opensuse-leap:
<<: *build_definition
build-python2:
<<: *build_definition
build-python3:
<<: *build_definition
build-ubuntu-latest:
<<: *build_definition
build-ubuntu-rolling:
<<: *build_definition
build-cross-armhf:
<<: *build_definition