reduce size artefact
This commit is contained in:
parent
240f3f28ea
commit
e4e3bd2039
1 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue