k3s/scripts/package-image

15 lines
263 B
Plaintext
Raw Normal View History

2019-01-01 08:23:01 +00:00
#!/bin/bash
set -e
source $(dirname $0)/version.sh
2019-01-01 08:23:01 +00:00
2019-02-05 04:42:35 +00:00
cd $(dirname $0)/..
2019-01-01 08:23:01 +00:00
TAG=${TAG:-${VERSION}${SUFFIX}}
REPO=${REPO:-rancher}
2019-01-09 16:54:15 +00:00
IMAGE_NAME=${IMAGE_NAME:-k3s}
2019-01-01 08:23:01 +00:00
2019-01-09 16:54:15 +00:00
IMAGE=${REPO}/${IMAGE_NAME}:${TAG}
2019-02-05 04:42:35 +00:00
docker build -t ${IMAGE} -f package/Dockerfile .
2019-01-01 08:23:01 +00:00
echo Built ${IMAGE}