update image generate

This commit is contained in:
AleaJactaEst 2018-04-06 22:17:22 +02:00
parent 032336794f
commit 240f3f28ea

View file

@ -44,8 +44,7 @@ Linux server build:
- mkdir -p /opt/ext
- cp $WORKDIR/server/debian/common/servercontainer_init_* /opt/
- cp $WORKDIR/server/debian/common/servercontainer_function.sh /opt/
- cp $WORKDIR/server/debian/common/servercontainer_configure_* /opt/ext
- cp $WORKDIR/server/debian/common/servercontainer_function.sh /opt/ext
- cp $WORKDIR/server/debian/common/* /opt/ext
- cp $WORKDIR/server/debian/common/khaganat.cfg /opt/ext
- echo -e 'export KHANAT_CLIENT_VERSION="1"\nexport UIDGAMESERVER=1000\nexport GIDGAMESERVER=1000\nexport DIRCLIENT="/opt/opennel_data"\nexport PACKAGECLIENT="smokey_linux64"' > /opt/khanat_config.sh
- /opt/servercontainer_init_create_account.sh
@ -89,10 +88,9 @@ Linux server build:
- su -c 'touch /home/gameserver/khanat/step_configure.ok' gameserver
# Clean
- rm -f /opt/servercontainer*
- rm -f /opt/ext/servercontainer*
# Create image
- mkdir -p out
- tar --numeric-owner --exclude=.git --exclude=.dockerenv --exclude=/proc --exclude=/sys --exclude=/home --exclude=/builds --exclude=/opt/download -cf out/debian_server.tar /
- tar --numeric-owner --exclude=.git --exclude=.dockerenv --exclude=/proc --exclude=/sys --exclude=/builds --exclude=/opt/download -cf out/debian_server.tar /
- ls -lh out
artifacts:
name: "khanat-$(echo $CI_BUILD_REF | head -c 7 )-$CI_PIPELINE_ID-server-debian-stretch"