From 9df7677a081ae3635d6a90fa89a58bfbf6c59aaf Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Mon, 27 May 2019 20:09:39 -0700
Subject: [PATCH] Build for all three Debian flavors I currently deal with

---
 .gitlab-ci.yml          | 46 ++++++++++++++++++++++++++++++++++-------
 source/debian/changelog |  5 +++--
 2 files changed, 42 insertions(+), 9 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f26d519..5c81268 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,15 +1,47 @@
-image: containers.ethitter.com:443/docker/images/debian:stretch
+package:jessie:
+  stage: build
+  image: containers.ethitter.com:443/docker/images/debian:jessie
+  before_script:
+    # 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}*
+      - nginx-dbgsym_${NGINX_VERSION_JESSIE}*
 
-before_script:
-  # Relies on latest binary build artifact from https://git.ethitter.com/debian/nginx-build.
-  - curl -o nginx-build "${NGINX_BINARY}"
+package:stretch:
+  stage: build
+  image: containers.ethitter.com:443/docker/images/debian:stretch
+  before_script:
+    # 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}*
+      - nginx-dbgsym_${NGINX_VERSION_STRETCH}*
 
-package:
+package:buster:
   stage: build
+  image: containers.ethitter.com:443/docker/images/debian:buster
+  before_script:
+    # 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
   script:
     - cd source
     - debuild -us -uc
   artifacts:
     paths:
-      - nginx_${NGINX_VERSION}*
-      - nginx-dbgsym_${NGINX_VERSION}*
+      - nginx_${NGINX_VERSION_BUSTER}*
+      - nginx-dbgsym_${NGINX_VERSION_BUSTER}*
diff --git a/source/debian/changelog b/source/debian/changelog
index 4201b73..5e5d8ec 100644
--- a/source/debian/changelog
+++ b/source/debian/changelog
@@ -1,5 +1,6 @@
-nginx (1.17.0-1~eth-jessie) stable; urgency=medium
+nginx (1.17.0-2~eth) stable; urgency=medium
 
-  * mainline 1.17.0
+  * nginx v1.17.0
+  * automated build via https://git.ethitter.com/debian/nginx-package-build/
 
  -- Erick Hitter <nginx-build@mxh.ethitter.com>  Mon, 27 May 2019 22:58:47 +0000
-- 
GitLab