From 525a250f3cb02e262aa0c35132bcb287f1feaf67 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 15 Jun 2019 11:46:37 +0200 Subject: [PATCH] fix(Makefile): use remote environment variable --- Makefile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 4949ae4..f85393b 100644 --- a/Makefile +++ b/Makefile @@ -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" \ No newline at end of file + scp flucky ${FLUCKY_REMOTE}:/usr/local/bin + ssh ${FLUCKY_REMOTE} "chmod +x /usr/local/bin/flucky" \ No newline at end of file