Skip to content
Snippets Groups Projects
Commit 6d613f4c authored by Erick Hitter's avatar Erick Hitter
Browse files

Reduce repetition

parent f8aaa492
Branches
Tags
1 merge request!1Add build
Pipeline #1121 passed
build-deb:jessie:
stage: build
image: containers.ethitter.com:443/docker/images/debian:jessie
before_script: before_script:
- echo $NGINX_VERSION_JESSIE - echo $NGINX_VERSION
- echo $NGINX_BINARY_JESSIE - echo $NGINX_BINARY
# Relies on latest binary build artifact from https://git.ethitter.com/debian/nginx-build. # Relies on latest binary build artifact from https://git.ethitter.com/debian/nginx-build.
- curl -o nginx-build "${NGINX_BINARY_JESSIE}" - curl -o nginx-build "${NGINX_BINARY}"
- chmod +x nginx-build - chmod +x nginx-build
- ./nginx-build -V - ./nginx-build -V
build-deb:jessie:
stage: build
image: containers.ethitter.com:443/docker/images/debian:jessie
variables:
NGINX_BINARY: $NGINX_BINARY_JESSIE
NGINX_VERSION: $NGINX_VERSION_JESSIE
script: script:
- cd source - cd source
- debuild -us -uc - debuild -us -uc
artifacts: artifacts:
paths: paths:
- nginx_${NGINX_VERSION_JESSIE}* - nginx_${NGINX_VERSION}*
- nginx-dbgsym_* - nginx-dbgsym_*
test-deb:jessie: test-deb:jessie:
stage: test stage: test
image: containers.ethitter.com:443/docker/images/debian:jessie image: containers.ethitter.com:443/docker/images/debian:jessie
before_script:
- date
script: script:
- dpkg -i nginx_${NGINX_VERSION_JESSIE}*.deb - dpkg -i nginx_${NGINX_VERSION_JESSIE}*.deb
- nginx -V - nginx -V
...@@ -29,25 +35,22 @@ test-deb:jessie: ...@@ -29,25 +35,22 @@ test-deb:jessie:
build-deb:stretch: build-deb:stretch:
stage: build stage: build
image: containers.ethitter.com:443/docker/images/debian:stretch image: containers.ethitter.com:443/docker/images/debian:stretch
before_script: variables:
- echo $NGINX_VERSION_STRETCH NGINX_BINARY: $NGINX_BINARY_STRETCH
- echo $NGINX_BINARY_STRETCH NGINX_VERSION: $NGINX_VERSION_STRETCH
# 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: script:
- cd source - cd source
- debuild -us -uc - debuild -us -uc
artifacts: artifacts:
paths: paths:
- nginx_${NGINX_VERSION_STRETCH}* - nginx_${NGINX_VERSION}*
- nginx-dbgsym_* - nginx-dbgsym_*
test-deb:stretch: test-deb:stretch:
stage: test stage: test
image: containers.ethitter.com:443/docker/images/debian:stretch image: containers.ethitter.com:443/docker/images/debian:stretch
before_script:
- date
script: script:
- dpkg -i nginx_${NGINX_VERSION_STRECTH}*.deb - dpkg -i nginx_${NGINX_VERSION_STRECTH}*.deb
- nginx -V - nginx -V
...@@ -57,25 +60,22 @@ test-deb:stretch: ...@@ -57,25 +60,22 @@ test-deb:stretch:
build-deb:buster: build-deb:buster:
stage: build stage: build
image: containers.ethitter.com:443/docker/images/debian:buster image: containers.ethitter.com:443/docker/images/debian:buster
before_script: variables:
- echo $NGINX_VERSION_BUSTER NGINX_BINARY: $NGINX_BINARY_BUSTER
- echo $NGINX_BINARY_BUSTER NGINX_VERSION: $NGINX_VERSION_BUSTER
# 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: script:
- cd source - cd source
- debuild -us -uc - debuild -us -uc
artifacts: artifacts:
paths: paths:
- nginx_${NGINX_VERSION_BUSTER}* - nginx_${NGINX_VERSION}*
- nginx-dbgsym_* - nginx-dbgsym_*
test-deb:buster: test-deb:buster:
stage: test stage: test
image: containers.ethitter.com:443/docker/images/debian:buster image: containers.ethitter.com:443/docker/images/debian:buster
before_script:
- date
script: script:
- dpkg -i nginx_${NGINX_VERSION_BUSTER}*.deb - dpkg -i nginx_${NGINX_VERSION_BUSTER}*.deb
- nginx -V - nginx -V
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment