summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2017-10-03 10:57:53 +0200
committercyBerta <cyberta@riseup.net>2017-10-11 18:45:02 +0200
commitca6a6bab5412dd13ab19f7043f320efe14a72dbd (patch)
treeaffd52c4a501e3d6ce9f56e3c664d940a0d63387 /.gitlab-ci.yml
parentadc6f7672c380d534fc963d868fe5aebcab54b4a (diff)
8755 redirect logs during docker image creation to an artifact file
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bddbc547..5819f343 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -24,7 +24,13 @@ variables:
script:
- docker --version
- docker info
- - .gitlab/build.sh ${DOCKER_IMAGE}
+ - if ! .gitlab/build.sh ${DOCKER_IMAGE} >> dockerbuild.log 2>&1; then echo "Image build failed. Please check dockerbuild.log."; exit 1; fi;
+ allow_failure: false
+ artifacts:
+ when: on_failure
+ expire_in: 31d
+ paths:
+ - dockerbuild.log
docker_image:sdk:
stage: docker_image_sdk