make deploys parameterized.

This commit is contained in:
fiatjaf 2024-08-20 15:47:29 -03:00
parent 01498a5914
commit eb30f7c64f

View File

@ -4,7 +4,7 @@ dev:
build:
CC=musl-gcc go build -ldflags='-linkmode external -extldflags "-static"' -o ./khatru-pyramid
deploy: build
ssh root@cantillon 'systemctl stop pyramid';
scp khatru-invite cantillon:pyramid/khatru-invite
ssh root@cantillon 'systemctl start pyramid'
deploy target: build
ssh root@{{target}} 'systemctl stop pyramid';
scp khatru-pyramid {{target}}:pyramid/khatru-invite
ssh root@{{target}} 'systemctl start pyramid'