This commit is contained in:
basil 2025-06-17 00:47:00 -04:00
parent a6ef3bf1b6
commit f174c4e02d
Signed by: basil
SSH key fingerprint: SHA256:y04xIFL/yqNaG9ae9Vl95vELtHfApGAIoOGLeVLP/fE
14 changed files with 626 additions and 1 deletions

19
Justfile Normal file
View file

@ -0,0 +1,19 @@
# 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"