change compress method for khanat image
This commit is contained in:
parent
24ced301ef
commit
c8042df2fa
1 changed files with 4 additions and 5 deletions
|
@ -89,16 +89,15 @@ Linux server build:
|
||||||
# Clean
|
# Clean
|
||||||
- rm -f /opt/servercontainer*
|
- rm -f /opt/servercontainer*
|
||||||
# Create image
|
# Create image
|
||||||
- mkdir -p out
|
|
||||||
- option=""
|
- option=""
|
||||||
- for dir in /home/* ; do if [ $dir != '/home/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'"
|
- echo "option '$option'"
|
||||||
- du -sh /home/gameserver
|
- find /home/gameserver -type d -exec du -sh {} \;
|
||||||
- tar --numeric-owner --exclude=.git --exclude=.dockerenv --exclude=/proc --exclude=/sys --exclude=/builds --exclude=/opt/download $option -cjf out/debian_server.tar /
|
- 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 out
|
- ls -lh khanat-debian-server.tar.gz
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "khanat-$(echo $CI_BUILD_REF | head -c 7 )-$CI_PIPELINE_ID-server-debian-stretch"
|
name: "khanat-$(echo $CI_BUILD_REF | head -c 7 )-$CI_PIPELINE_ID-server-debian-stretch"
|
||||||
paths:
|
paths:
|
||||||
- out
|
- khanat-debian-server.tar.gz
|
||||||
expire_in: 2 hour
|
expire_in: 2 hour
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue