mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
18 lines
275 B
Bash
Executable File
18 lines
275 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
source $(dirname $0)/version
|
|
|
|
cd $(dirname $0)/../package
|
|
|
|
TAG=${TAG:-${VERSION}${SUFFIX}}
|
|
REPO=${REPO:-rancher}
|
|
|
|
cp ../bin/rio ./rio
|
|
|
|
IMAGE=${REPO}/rio:${TAG}
|
|
docker build -t ${IMAGE} .
|
|
mkdir -p ../dist
|
|
echo ${IMAGE} > ../dist/images
|
|
echo Built ${IMAGE}
|