From 35d247f60377c4a2ac9febc790e559c46b933762 Mon Sep 17 00:00:00 2001 From: AleaJactaEst Date: Sat, 7 Apr 2018 00:25:47 +0200 Subject: [PATCH] include data gameserver --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6046602..294633d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -91,13 +91,14 @@ Linux server build: # Create image - mkdir -p out - option="" - - for dir in /home/* ; do if [ $dir != 'gameserver' ] ; then option="$option --exclude=$dir" ; fi ; done + - for dir in /home/* ; do if [ $dir != '/home/gameserver' ] ; then option="$option --exclude=$dir" ; fi ; done - echo "option '$option'" + - du -sh /home/gameserver - 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" paths: - out - expire_in: 2 day + expire_in: 2 hour