Skip to content

Merge pull request #3 from ProDefense/22624-debug #15

Merge pull request #3 from ProDefense/22624-debug

Merge pull request #3 from ProDefense/22624-debug #15

Workflow file for this run

name: Hawk CD
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy using ssh
uses: appleboy/ssh-action@master
with:
host: redteam.prodefense.io
username: deploy
key: ${{ secrets.SSH_KEY }}
port: 22
script: |
[ -d "/home/deploy/hawk" ] && rm -rf /home/deploy/hawk;
cd /home/deploy
git clone [email protected]:ProDefense/hawk.git
rm -rf /home/webserver/hawk
rm -rf /home/webserver/hawk_backdoor
cd /home/deploy/hawk
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o hawk
mv /home/deploy/hawk/hawk /home/webserver/
mv /home/deploy/hawk/extras/hawk_backdoor /home/webserver/