.gitlab-ci.yml 607 Bytes
Newer Older
Erick Hitter's avatar
Erick Hitter committed
1 2 3 4 5
# TODO: replace with container that provides all build deps.
image: containers.ethitter.com:443/docker/images/debian:stretch

before_script:
  - apt-get update
Erick Hitter's avatar
Erick Hitter committed
6
  - apt-get -y --no-install-recommends install devscripts lintian fakeroot
Erick Hitter's avatar
Erick Hitter committed
7 8 9
  - echo $NGINX_VERSION
  - echo $NGINX_BINARY
  # Relies on latest binary build artifact from https://git.ethitter.com/debian/nginx-build.
Erick Hitter's avatar
Typo  
Erick Hitter committed
10
  - curl -o source/usr/sbin/nginx "${NGINX_BINARY}"
Erick Hitter's avatar
Erick Hitter committed
11 12 13 14

after_script:
  - ls -la $CI_BUILDS_DIR
  - ls -la $CI_PROJECT_DIR
Erick Hitter's avatar
Erick Hitter committed
15 16 17 18

package:
  stage: build
  script:
Erick Hitter's avatar
Erick Hitter committed
19
    - cd source
Erick Hitter's avatar
Erick Hitter committed
20
    - debuild -us -uc
Erick Hitter's avatar
Erick Hitter committed
21 22
  artifacts:
    paths:
23
      - nginx*