You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3s/scripts/package-image

15 lines
263 B

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