.gitlab-ci.yml 1.62 KB
Newer Older
1 2 3 4
variables:
  DEBIAN_FRONTEND: noninteractive
  LC_ALL: C
  DOCKER_DRIVER: overlay2
5
  CI_REGISTRY_IMAGE: oerdnj
6 7

stages:
8
  - image
9 10 11

.image: &image
  image: docker:latest
12
  stage: image
13 14 15 16 17
  services:
    - docker:dind
  tags:
    - docker
  before_script:
Ondřej Surý's avatar
Ondřej Surý committed
18
    - echo -n "$DOCKER_IO_PASSWORD" | docker login --username oerdnj --password-stdin
19 20 21
    - docker info
  script:
    - docker pull "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" || true
22
    - docker build --cache-from "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" -t "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" "docker/$(echo $CI_JOB_NAME | sed -e 's,:,/,')"
23
    - docker push "$CI_REGISTRY_IMAGE/$CI_JOB_NAME"
24 25 26 27
#    - docker login -u "$CI_REGISTRY_USER" -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
#    - docker pull "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" || true
#    - docker build --cache-from "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" -t "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" "docker/$CI_JOB_NAME"
#    - docker push "$CI_REGISTRY_IMAGE/$CI_JOB_NAME"
28

29
bind9:debian-jessie-amd64:
30 31
  <<: *image

32
bind9:debian-jessie-i386:
33 34
  <<: *image

35
bind9:debian-stretch-amd64:
36 37
  <<: *image

38
bind9:debian-stretch-i386:
39 40
  <<: *image

41
bind9:debian-buster-amd64:
42 43
  <<: *image

44
bind9:debian-buster-i386:
45 46
  <<: *image

47
bind9:debian-sid-amd64:
48 49
  <<: *image

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
bind9:debian-sid-i386:
  <<: *image

bind9:ubuntu-trusty-amd64:
  <<: *image

bind9:ubuntu-trusty-i386:
  <<: *image

bind9:ubuntu-xenial-amd64:
  <<: *image

bind9:ubuntu-xenial-i386:
  <<: *image

bind9:ubuntu-zesty-amd64:
  <<: *image

bind9:ubuntu-zesty-i386:
  <<: *image

bind9:ubuntu-artful-amd64:
  <<: *image

bind9:ubuntu-artful-i386:
75 76 77 78 79 80 81
  <<: *image

#centos-amd64:latest:
#  <<: *image

#fedora-amd64:latest:
#  <<: *image