cleanup temp folder correctly and rename correct deb package

This commit is contained in:
Lukas Heiligenbrunner 2020-10-22 19:52:34 +02:00
parent 5eed1849bc
commit 92d6ae0e7e

View File

@ -65,7 +65,7 @@ package_debian:
- cp ../database.sql ./OpenMediaCenter/tmp/openmediacenter.sql
- chmod -R 0775 *
- dpkg-deb --build OpenMediaCenter
- mv OpenMediaCenter-0.1.deb OpenMediaCenter-0.1_amd64.deb
- mv OpenMediaCenter.deb OpenMediaCenter-0.1_amd64.deb
artifacts:
paths:
- deb/OpenMediaCenter-0.1_amd64.deb
@ -86,4 +86,5 @@ deploy_test1:
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- scp deb/OpenMediaCenter-*.deb root@192.168.0.42:/tmp/
- ssh root@192.168.0.42 "apt-get --reinstall install /tmp/OpenMediaCenter-*.deb"
- rm /tmp/OpenMediaCenter-*.deb