do a few
This commit is contained in:
parent
a6ef3bf1b6
commit
f174c4e02d
14 changed files with 626 additions and 1 deletions
19
Justfile
Normal file
19
Justfile
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue