2020-10-16 11:39:44 +02:00
|
|
|
#!/bin/bash
|
|
|
|
git add .
|
|
|
|
git commit -a
|
2020-10-16 11:42:37 +02:00
|
|
|
git push
|
2020-10-16 11:39:44 +02:00
|
|
|
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'"
|
2020-10-16 11:43:19 +02:00
|
|
|
ssh replicator "bash -c 'sudo systemctl restart repomgr'"
|