.gitlab-ci.yml 2.12 KB
Newer Older
Erick Hitter's avatar
Erick Hitter committed
1
build-deb:jessie:
2 3 4
  stage: build
  image: containers.ethitter.com:443/docker/images/debian:jessie
  before_script:
5 6 7
    - echo $NGINX_VERSION_JESSIE
    - echo $NGINX_BINARY_JESSIE

8 9 10 11 12 13 14 15 16 17
    # Relies on latest binary build artifact from https://git.ethitter.com/debian/nginx-build.
    - curl -o nginx-build "${NGINX_BINARY_JESSIE}"
    - chmod +x nginx-build
    - ./nginx-build -V
  script:
    - cd source
    - debuild -us -uc
  artifacts:
    paths:
      - nginx_${NGINX_VERSION_JESSIE}*
18
      - nginx-dbgsym_*
Erick Hitter's avatar
Erick Hitter committed
19

Erick Hitter's avatar
Erick Hitter committed
20 21 22 23 24 25 26 27 28 29
test-deb:jessie:
  stage: test
  image: containers.ethitter.com:443/docker/images/debian:jessie
  script:
    - dpkg -i nginx_${NGINX_VERSION_JESSIE}*.deb
    - nginx -V
  dependencies:
    - build-deb:jessie

build-deb:stretch:
30 31 32
  stage: build
  image: containers.ethitter.com:443/docker/images/debian:stretch
  before_script:
33 34 35
    - echo $NGINX_VERSION_STRETCH
    - echo $NGINX_BINARY_STRETCH

36 37 38 39 40 41 42 43 44 45
    # Relies on latest binary build artifact from https://git.ethitter.com/debian/nginx-build.
    - curl -o nginx-build "${NGINX_BINARY_STRETCH}"
    - chmod +x nginx-build
    - ./nginx-build -V
  script:
    - cd source
    - debuild -us -uc
  artifacts:
    paths:
      - nginx_${NGINX_VERSION_STRETCH}*
46
      - nginx-dbgsym_*
Erick Hitter's avatar
Erick Hitter committed
47

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

build-deb:buster:
Erick Hitter's avatar
Erick Hitter committed
58
  stage: build
59 60
  image: containers.ethitter.com:443/docker/images/debian:buster
  before_script:
61 62 63
    - echo $NGINX_VERSION_BUSTER
    - echo $NGINX_BINARY_BUSTER

64 65 66 67
    # Relies on latest binary build artifact from https://git.ethitter.com/debian/nginx-build.
    - curl -o nginx-build "${NGINX_BINARY_BUSTER}"
    - chmod +x nginx-build
    - ./nginx-build -V
Erick Hitter's avatar
Erick Hitter committed
68
  script:
Erick Hitter's avatar
Erick Hitter committed
69
    - cd source
Erick Hitter's avatar
Erick Hitter committed
70
    - debuild -us -uc
Erick Hitter's avatar
Erick Hitter committed
71 72
  artifacts:
    paths:
73
      - nginx_${NGINX_VERSION_BUSTER}*
74
      - nginx-dbgsym_*
Erick Hitter's avatar
Erick Hitter committed
75 76 77 78 79 80 81 82 83

test-deb:buster:
  stage: test
  image: containers.ethitter.com:443/docker/images/debian:buster
  script:
    - dpkg -i nginx_${NGINX_VERSION_BUSTER}*.deb
    - nginx -V
  dependencies:
    - build-deb:buster