Skip to content

Commit

Permalink
make ci restart soaphub
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Davis <[email protected]>
  • Loading branch information
duglin committed Feb 17, 2025
1 parent 65b3065 commit 4fdf2fe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ jobs:
- name: build, test, push
run: make mysql test push

- name: restart soaphub
env:
SOAPHUB_SSH_KEY: ${{ secrets.SOAPHUB_SSH_KEY }}
run: misc/restartsoaphub

13 changes: 13 additions & 0 deletions misc/restartsoaphub
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -x

if [[ test -v SOAPHUB_SSH_KEY == "" ]]; then
echo "Set \$SOAPHUB_SSH_KEY first to a public key"
exit 1
fi

env | grep SOAPHUB_SSH_KEY= | sed "s/^SOAPHUB_SSH_KEY=//" > .key
chmod 0600 .key
ssh -o StrictHostKeyChecking=no -i .key [email protected]
rm .key

0 comments on commit 4fdf2fe

Please sign in to comment.