Fix path to archive

This commit is contained in:
Condorra 2023-02-13 21:11:37 +11:00
parent 1cf79cfbd6
commit 23bf7b1e0f

View File

@ -16,7 +16,7 @@ chmod 0600 ./deploy-key
BUILDSTAMP=$(cat binaries/buildstamp) BUILDSTAMP=$(cat binaries/buildstamp)
tar -cvJf binary-archive-$BUILDSTAMP.tar.xz -C binaries blastmud_game blastmud_listener tar -cvJf binary-archive-$BUILDSTAMP.tar.xz -C binaries blastmud_game blastmud_listener
scp -i deploy-key binary-archive-$BUILDSTAMP.tar.xz blast@$DEPLOY_HOST:/home/blast/archive/ scp -i deploy-key binary-archive-$BUILDSTAMP.tar.xz blast@$DEPLOY_HOST:/home/blast/archive/
ssh -i deploy-key blast@$DEPLOY_HOST "find /home/blast/archive -mtime +30 -delete && mkdir -p /home/blast/latest && tar -xvJf /home/blast/archive/binary/binary-archive-$BUILDSTAMP.tar.xz -C /home/blast/latest" ssh -i deploy-key blast@$DEPLOY_HOST "find /home/blast/archive -mtime +30 -delete && mkdir -p /home/blast/latest && tar -xvJf /home/blast/archive/binary-archive-$BUILDSTAMP.tar.xz -C /home/blast/latest"
# In the future, we should wrap this in a check it is needed... # In the future, we should wrap this in a check it is needed...
ssh -i deploy-key blast@$DEPLOY_HOST "mv /home/blast/latest/blastmud_game /mnt/gameserver-app/exe" ssh -i deploy-key blast@$DEPLOY_HOST "mv /home/blast/latest/blastmud_game /mnt/gameserver-app/exe"