From e4e3bd203934b6d7c3703e36febb19335e9207e9 Mon Sep 17 00:00:00 2001 From: AleaJactaEst Date: Fri, 6 Apr 2018 22:47:55 +0200 Subject: [PATCH] reduce size artefact --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3978761..6046602 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -90,7 +90,10 @@ Linux server build: - rm -f /opt/servercontainer* # Create image - mkdir -p out - - tar --numeric-owner --exclude=.git --exclude=.dockerenv --exclude=/proc --exclude=/sys --exclude=/builds --exclude=/opt/download -cf out/debian_server.tar / + - option="" + - for dir in /home/* ; do if [ $dir != 'gameserver' ] ; then option="$option --exclude=$dir" ; fi ; done + - echo "option '$option'" + - tar --numeric-owner --exclude=.git --exclude=.dockerenv --exclude=/proc --exclude=/sys --exclude=/builds --exclude=/opt/download $option -cf out/debian_server.tar / - ls -lh out artifacts: name: "khanat-$(echo $CI_BUILD_REF | head -c 7 )-$CI_PIPELINE_ID-server-debian-stretch"