add baseband receiver and broadway pusher
Some checks failed
/ Build BaseBand Server (push) Has been cancelled
Some checks failed
/ Build BaseBand Server (push) Has been cancelled
This commit is contained in:
parent
07ef71587c
commit
df52fdb547
3 changed files with 22 additions and 0 deletions
|
@ -38,3 +38,7 @@ jobs:
|
|||
with:
|
||||
name: BaseBand-Broadway.jar
|
||||
path: Client/build/proguard/BaseBand-Broadway.jar
|
||||
- name: Release to server
|
||||
if: github.ref == 'refs/heads/release'
|
||||
run: bash push_broadway.sh
|
||||
|
||||
|
|
9
Server/baseband_receiver.sh
Normal file
9
Server/baseband_receiver.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
while true ; do
|
||||
nc -lp 3849 | gpg -d --assert-signer B0F943A1A93444BFA8C030CCC36DCC0986B8748F > BaseBand-Broadway.jar.tmp 2> /dev/stdout \
|
||||
|| continue
|
||||
|
||||
mv BaseBand-Broadway.jar.tmp BaseBand-Broadway.jar
|
||||
sleep 5
|
||||
done
|
9
push_broadway.sh
Normal file
9
push_broadway.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
# DO NOT RUN THIS MANUALLY. PUSH TO RELEASE INSTEAD. ( <- unless there is an emergency.)
|
||||
|
||||
echo "$GPG_PRIVATEKEY" | gpg --import
|
||||
(
|
||||
gpg -sear BaseBand -u BaseBand < Client/build/proguard/BaseBand-Broadway.jar
|
||||
sleep 1
|
||||
) | nc -c $BB_HOST 3849
|
Loading…
Add table
Reference in a new issue