.gitlab-ci.yml 1.88 KB
Newer Older
Erick Hitter's avatar
Erick Hitter committed
1 2 3 4 5 6 7 8 9
before_script:
  - echo $NGINX_VERSION
  - echo $NGINX_BINARY

  # Relies on latest binary build artifact from https://git.ethitter.com/debian/nginx-build.
  - curl -o nginx-build "${NGINX_BINARY}"
  - chmod +x nginx-build
  - ./nginx-build -V

Erick Hitter's avatar
Erick Hitter committed
10
build-deb:jessie:
11 12
  stage: build
  image: containers.ethitter.com:443/docker/images/debian:jessie
Erick Hitter's avatar
Erick Hitter committed
13 14 15
  variables:
    NGINX_BINARY: $NGINX_BINARY_JESSIE
    NGINX_VERSION: $NGINX_VERSION_JESSIE
16 17 18 19 20
  script:
    - cd source
    - debuild -us -uc
  artifacts:
    paths:
Erick Hitter's avatar
Erick Hitter committed
21
      - nginx_${NGINX_VERSION}*
22
      - nginx-dbgsym_*
Erick Hitter's avatar
Erick Hitter committed
23

Erick Hitter's avatar
Erick Hitter committed
24 25 26
test-deb:jessie:
  stage: test
  image: containers.ethitter.com:443/docker/images/debian:jessie
Erick Hitter's avatar
Erick Hitter committed
27 28
  before_script:
    - date
Erick Hitter's avatar
Erick Hitter committed
29 30 31 32 33 34 35
  script:
    - dpkg -i nginx_${NGINX_VERSION_JESSIE}*.deb
    - nginx -V
  dependencies:
    - build-deb:jessie

build-deb:stretch:
36 37
  stage: build
  image: containers.ethitter.com:443/docker/images/debian:stretch
Erick Hitter's avatar
Erick Hitter committed
38 39 40
  variables:
    NGINX_BINARY: $NGINX_BINARY_STRETCH
    NGINX_VERSION: $NGINX_VERSION_STRETCH
41 42 43 44 45
  script:
    - cd source
    - debuild -us -uc
  artifacts:
    paths:
Erick Hitter's avatar
Erick Hitter committed
46
      - nginx_${NGINX_VERSION}*
47
      - nginx-dbgsym_*
Erick Hitter's avatar
Erick Hitter committed
48

Erick Hitter's avatar
Erick Hitter committed
49 50 51
test-deb:stretch:
  stage: test
  image: containers.ethitter.com:443/docker/images/debian:stretch
Erick Hitter's avatar
Erick Hitter committed
52 53
  before_script:
    - date
Erick Hitter's avatar
Erick Hitter committed
54 55 56 57 58 59 60
  script:
    - dpkg -i nginx_${NGINX_VERSION_STRECTH}*.deb
    - nginx -V
  dependencies:
    - build-deb:stretch

build-deb:buster:
Erick Hitter's avatar
Erick Hitter committed
61
  stage: build
62
  image: containers.ethitter.com:443/docker/images/debian:buster
Erick Hitter's avatar
Erick Hitter committed
63 64 65
  variables:
    NGINX_BINARY: $NGINX_BINARY_BUSTER
    NGINX_VERSION: $NGINX_VERSION_BUSTER
Erick Hitter's avatar
Erick Hitter committed
66
  script:
Erick Hitter's avatar
Erick Hitter committed
67
    - cd source
Erick Hitter's avatar
Erick Hitter committed
68
    - debuild -us -uc
69 70
  artifacts:
    paths:
Erick Hitter's avatar
Erick Hitter committed
71
      - nginx_${NGINX_VERSION}*
72
      - nginx-dbgsym_*
Erick Hitter's avatar
Erick Hitter committed
73 74 75 76

test-deb:buster:
  stage: test
  image: containers.ethitter.com:443/docker/images/debian:buster
Erick Hitter's avatar
Erick Hitter committed
77 78
  before_script:
    - date
Erick Hitter's avatar
Erick Hitter committed
79 80 81 82 83
  script:
    - dpkg -i nginx_${NGINX_VERSION_BUSTER}*.deb
    - nginx -V
  dependencies:
    - build-deb:buster