fix(Makefile): use remote environment variable

This commit is contained in:
Markus Pesch 2019-06-15 11:46:37 +02:00
parent 8aa6db6b7d
commit 525a250f3c
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -32,12 +32,7 @@ container-build:
volkerraschek/build-image:1.0.0 \
make build UID=${UID} GID=${GID} VERSION=${VERSION} GOOS=${GOOS} GOARCH=${GOARCH}
hades:
remote:
$(MAKE) build GOARCH=arm
scp flucky hades.hellenthal.cryptic.systems:/usr/local/bin
ssh hades.hellenthal.cryptic.systems "chmod +x /usr/local/bin/flucky"
poseidon:
$(MAKE) build GOARCH=arm
scp flucky poseidon.trier.cryptic.systems:/usr/local/bin
ssh poseidon.trier.cryptic.systems "chmod +x /usr/local/bin/flucky"
scp flucky ${FLUCKY_REMOTE}:/usr/local/bin
ssh ${FLUCKY_REMOTE} "chmod +x /usr/local/bin/flucky"