debug: moar debugggg #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |