protohacking/Justfile
2025-06-17 00:47:00 -04:00

19 lines
590 B
Makefile

# this is my deploy script, u dont need to worry abt this
# if ur wondering im on an arm macbook so when i deploy
# i need to compile to amd64, so i just do it in a docker container
build:
docker run \
-v "$(pwd):/src" \
--platform linux/amd64 \
--rm \
-w /src \
golang:1.24-alpine \
/src/build.sh
purge-remote:
ssh redbox "sudo rm /usr/local/bin/protohacking || true"
upload:
dd if=protohacking | ssh redbox "sudo dd of=/usr/local/bin/protohacking && sudo chmod 755 /usr/local/bin/protohacking"
push: build purge-remote upload
start-remote: push
ssh redbox "protohacking"