mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
15 lines
263 B
Bash
Executable File
15 lines
263 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
source $(dirname $0)/version.sh
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
TAG=${TAG:-${VERSION}${SUFFIX}}
|
|
REPO=${REPO:-rancher}
|
|
IMAGE_NAME=${IMAGE_NAME:-k3s}
|
|
|
|
IMAGE=${REPO}/${IMAGE_NAME}:${TAG}
|
|
docker build -t ${IMAGE} -f package/Dockerfile .
|
|
echo Built ${IMAGE}
|