1
0
mirror of https://github.com/rancher/cli.git synced 2026-02-05 09:48:36 +01:00

Build rancher/cli image

This commit is contained in:
Darren Shepherd
2017-03-02 21:20:15 -07:00
parent cd62c46123
commit 0ea05c34db
6 changed files with 37 additions and 16 deletions

View File

@@ -56,3 +56,23 @@ for i in build/bin/*; do
fi
)
done
ARCH=${ARCH:-"amd64"}
SUFFIX=""
[ "${ARCH}" != "amd64" ] && SUFFIX="_${ARCH}"
cd package
TAG=${TAG:-${VERSION}${SUFFIX}}
REPO=${REPO:-rancher}
if echo $TAG | grep -q dirty; then
TAG=dev
fi
cp ../bin/rancher .
docker build -t ${REPO}/cli:${TAG} .
echo ${REPO}/cli:${TAG} > ../dist/images
echo Built ${REPO}/cli:${TAG}