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

"Namespace" artifacts by the Debian release they correspond to

Fixes #2
parent a6709988
Branches
Tags
1 merge request!2Prevent artifact name collisions
Pipeline #1123 failed
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
...@@ -7,6 +7,12 @@ before_script: ...@@ -7,6 +7,12 @@ before_script:
- chmod +x nginx-build - chmod +x nginx-build
- ./nginx-build -V - ./nginx-build -V
after_script:
- export $BUILD_DIR=$CI_PROJECT_DIR/deb-$(lsb_release -r)
- mkdir $BUILD_DIR
- mv $CI_PROJECT_DIR/nginx_${NGINX_VERSION}* $BUILD_DIR
- mv $CI_PROJECT_DIR/nginx-dbgsym_* $BUILD_DIR
build-deb:jessie: build-deb:jessie:
stage: build stage: build
image: containers.ethitter.com:443/docker/images/debian:jessie image: containers.ethitter.com:443/docker/images/debian:jessie
...@@ -18,17 +24,18 @@ build-deb:jessie: ...@@ -18,17 +24,18 @@ build-deb:jessie:
- debuild -us -uc - debuild -us -uc
artifacts: artifacts:
paths: paths:
- nginx_${NGINX_VERSION}* - $BUILD_DIR
- 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: before_script:
- date - ''
script: script:
- dpkg -i nginx_${NGINX_VERSION_JESSIE}*.deb - dpkg -i deb-$(lsb_release -r)/nginx_${NGINX_VERSION_JESSIE}*.deb
- nginx -V - nginx -V
after_script:
- ''
dependencies: dependencies:
- build-deb:jessie - build-deb:jessie
...@@ -43,17 +50,18 @@ build-deb:stretch: ...@@ -43,17 +50,18 @@ build-deb:stretch:
- debuild -us -uc - debuild -us -uc
artifacts: artifacts:
paths: paths:
- nginx_${NGINX_VERSION}* - $BUILD_DIR
- 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: before_script:
- date - ''
script: script:
- dpkg -i nginx_${NGINX_VERSION_STRECTH}*.deb - dpkg -i deb-$(lsb_release -r)/nginx_${NGINX_VERSION_STRECTH}*.deb
- nginx -V - nginx -V
after_script:
- ''
dependencies: dependencies:
- build-deb:stretch - build-deb:stretch
...@@ -68,16 +76,17 @@ build-deb:buster: ...@@ -68,16 +76,17 @@ build-deb:buster:
- debuild -us -uc - debuild -us -uc
artifacts: artifacts:
paths: paths:
- nginx_${NGINX_VERSION}* - $BUILD_DIR
- 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: before_script:
- date - ''
script: script:
- dpkg -i nginx_${NGINX_VERSION_BUSTER}*.deb - dpkg -i deb-$(lsb_release -r)/nginx_${NGINX_VERSION_BUSTER}*.deb
- nginx -V - nginx -V
after_script:
- ''
dependencies: dependencies:
- build-deb:buster - build-deb:buster
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment