CI opt-test: Drop Python2 & Bash in Fedora latest.
[ntpsec.git] / .gitlab-docker-ci.yml
blob1c9d2e9542257d4f50457961d60ca60a7f0dc8d5
1 .build_template: &build_definition
2   variables:
3     # Try to save some time by only grabbing the most recent commit
4     GIT_DEPTH: '1'
5   stage: build
6   image: docker
7   services:
8     - docker:dind
9   script:
10     - IMAGE_NAME=${CI_JOB_NAME/build-/}
11     - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
12     - docker pull $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest || true
13     - >
14       docker build
15       --pull
16       --cache-from $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest
17       --rm=false
18       --tag $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest .
19       --file .dockerfiles/$IMAGE_NAME
20     - docker push $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest
21   allow_failure: true
22   rules:
23     - if: '$CI_PIPELINE_SOURCE == "schedule"'
25 build-alpine:
26   <<: *build_definition
28 build-alpine-edge:
29   <<: *build_definition
31 build-alpine-pages:
32   <<: *build_definition
34 build-alpine-seccomp:
35   <<: *build_definition
37 build-centos-latest:
38   <<: *build_definition
40 build-clang:
41   <<: *build_definition
43 build-coverity:
44   <<: *build_definition
46 build-debian-oldstable:
47   <<: *build_definition
49 build-debian-stable:
50   <<: *build_definition
52 build-debian-stable-i386:
53   <<: *build_definition
55 build-debian-stable-mdns:
56   <<: *build_definition
58 build-debian-testing:
59   <<: *build_definition
61 build-debian-unstable:
62   <<: *build_definition
64 build-fedora-latest:
65   <<: *build_definition
67 build-gentoo:
68   <<: *build_definition
70 build-opensuse-leap:
71   <<: *build_definition
73 build-python2:
74   <<: *build_definition
76 build-python3:
77   <<: *build_definition
79 build-ubuntu-latest:
80   <<: *build_definition
82 build-ubuntu-rolling:
83   <<: *build_definition
85 build-cross-armhf:
86   <<: *build_definition