change compress method for khanat image

This commit is contained in:
AleaJactaEst 2018-04-11 12:12:22 +02:00
parent 24ced301ef
commit c8042df2fa

View file

@ -89,16 +89,15 @@ Linux server build:
# Clean
- rm -f /opt/servercontainer*
# Create image
- mkdir -p out
- option=""
- 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 -cjf out/debian_server.tar /
- ls -lh out
- find /home/gameserver -type d -exec du -sh {} \;
- tar --numeric-owner --exclude=.git --exclude=.dockerenv --exclude=/proc --exclude=/sys --exclude=/builds --exclude=/opt/download --exclude=khanat-debian-server.tar.gz $option -czf khanat-debian-server.tar.gz /
- ls -lh khanat-debian-server.tar.gz
artifacts:
name: "khanat-$(echo $CI_BUILD_REF | head -c 7 )-$CI_PIPELINE_ID-server-debian-stretch"
paths:
- out
- khanat-debian-server.tar.gz
expire_in: 2 hour