add upload script, clean pkgdir thoroughly

This commit is contained in:
Laura Hausmann 2020-10-16 11:39:44 +02:00
parent 83ddd04381
commit 5b0b3dfbf3
Signed by: zotan
GPG key ID: 5EC1D38FFC321311
2 changed files with 7 additions and 0 deletions

View file

@ -117,6 +117,7 @@ namespace repomgr {
}
package.RepoVersion = package.CurrentVersion;
UpdatePackage(package);
WriteIndex();
}

6
compile_upload.sh Normal file
View file

@ -0,0 +1,6 @@
#!/bin/bash
git add .
git commit -a
dotnet publish -c Release -r linux-x64
scp $(pwd)/bin/Release/netcoreapp3.1/linux-x64/publish/repomgr replicator:/usr/local/bin
ssh replicator "bash -c 'cd /opt/repomgr_git && git pull'"