From 42d9e7171ce291542899cf4575a93a73cc264aad Mon Sep 17 00:00:00 2001 From: Maisem Ali Date: Fri, 21 Oct 2022 10:12:34 -0700 Subject: [PATCH] Makefile: add publishdevimage target This builds and publishes the tailscale container image for dev testing. Signed-off-by: Maisem Ali --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 948705e86..14a74af76 100644 --- a/Makefile +++ b/Makefile @@ -54,3 +54,9 @@ pushspk: spk echo "Pushing SPK to root@${SYNO_HOST} (env var SYNO_HOST) ..." scp tailscale.spk root@${SYNO_HOST}: ssh root@${SYNO_HOST} /usr/syno/bin/synopkg install tailscale.spk + +publishdevimage: + @test -n "${REPO}" || (echo "REPO=... required; e.g. REPO=ghcr.io/${USER}/tailscale" && exit 1) + @test "${REPO}" != "tailscale/tailscale" || (echo "REPO=... must not be tailscale/tailscale" && exit 1) + @test "${REPO}" != "ghcr.io/tailscale/tailscale" || (echo "REPO=... must not be ghcr.io/tailscale/tailscale" && exit 1) + TAGS=latest REPOS=${REPO} PUSH=true ./build_docker.sh