k3s/scripts/package-image
2020-01-06 16:18:15 -07:00

15 lines
258 B
Bash
Executable File

#!/bin/bash
set -e
cd $(dirname $0)/..
. ./scripts/version.sh
TAG=${TAG:-${VERSION_TAG}${SUFFIX}}
REPO=${REPO:-rancher}
IMAGE_NAME=${IMAGE_NAME:-k3s}
IMAGE=${REPO}/${IMAGE_NAME}:${TAG}
docker build -t ${IMAGE} -f package/Dockerfile .
echo Built ${IMAGE}