mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 03:31:39 +00:00
build_docker.sh: set good repo defaults based on the target.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
5242e0f291
commit
969b9ed91f
@ -23,19 +23,20 @@ set -eu
|
|||||||
export PATH=$PWD/tool:$PATH
|
export PATH=$PWD/tool:$PATH
|
||||||
|
|
||||||
eval $(./build_dist.sh shellvars)
|
eval $(./build_dist.sh shellvars)
|
||||||
DEFAULT_TAGS="v${VERSION_SHORT},v${VERSION_MINOR}"
|
|
||||||
DEFAULT_REPOS="tailscale/tailscale"
|
|
||||||
DEFAULT_BASE="ghcr.io/tailscale/alpine-base:3.16"
|
|
||||||
DEFAULT_TARGET="client"
|
DEFAULT_TARGET="client"
|
||||||
|
DEFAULT_TAGS="v${VERSION_SHORT},v${VERSION_MINOR}"
|
||||||
|
DEFAULT_BASE="ghcr.io/tailscale/alpine-base:3.16"
|
||||||
|
|
||||||
PUSH="${PUSH:-false}"
|
PUSH="${PUSH:-false}"
|
||||||
REPOS="${REPOS:-${DEFAULT_REPOS}}"
|
TARGET="${TARGET:-${DEFAULT_TARGET}}"
|
||||||
TAGS="${TAGS:-${DEFAULT_TAGS}}"
|
TAGS="${TAGS:-${DEFAULT_TAGS}}"
|
||||||
BASE="${BASE:-${DEFAULT_BASE}}"
|
BASE="${BASE:-${DEFAULT_BASE}}"
|
||||||
TARGET="${TARGET:-${DEFAULT_TARGET}}"
|
|
||||||
|
|
||||||
case "$TARGET" in
|
case "$TARGET" in
|
||||||
client)
|
client)
|
||||||
|
DEFAULT_REPOS="tailscale/tailscale"
|
||||||
|
REPOS="${REPOS:-${DEFAULT_REPOS}}"
|
||||||
go run github.com/tailscale/mkctr \
|
go run github.com/tailscale/mkctr \
|
||||||
--gopaths="\
|
--gopaths="\
|
||||||
tailscale.com/cmd/tailscale:/usr/local/bin/tailscale, \
|
tailscale.com/cmd/tailscale:/usr/local/bin/tailscale, \
|
||||||
@ -52,6 +53,8 @@ case "$TARGET" in
|
|||||||
/usr/local/bin/containerboot
|
/usr/local/bin/containerboot
|
||||||
;;
|
;;
|
||||||
operator)
|
operator)
|
||||||
|
DEFAULT_REPOS="tailscale/k8s-operator"
|
||||||
|
REPOS="${REPOS:-${DEFAULT_REPOS}}"
|
||||||
go run github.com/tailscale/mkctr \
|
go run github.com/tailscale/mkctr \
|
||||||
--gopaths="tailscale.com/cmd/k8s-operator:/usr/local/bin/operator" \
|
--gopaths="tailscale.com/cmd/k8s-operator:/usr/local/bin/operator" \
|
||||||
--ldflags="\
|
--ldflags="\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user