mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 14:36:32 +00:00
Initial Commit
This commit is contained in:
24
scripts/package
Executable file
24
scripts/package
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
source $(dirname $0)/version
|
||||
|
||||
ARCH=${ARCH:-"amd64"}
|
||||
SUFFIX=""
|
||||
[ "${ARCH}" != "amd64" ] && SUFFIX="_${ARCH}"
|
||||
|
||||
cd $(dirname $0)/../package
|
||||
|
||||
TAG=${TAG:-${VERSION}${SUFFIX}}
|
||||
REPO=${REPO:-rancher}
|
||||
|
||||
if echo $TAG | grep -q dirty; then
|
||||
TAG=dev
|
||||
fi
|
||||
|
||||
cp ../bin/rke .
|
||||
|
||||
IMAGE=${REPO}/rke:${TAG}
|
||||
docker build -t ${IMAGE} .
|
||||
echo ${IMAGE} > ../dist/images
|
||||
echo Built ${IMAGE}
|
Reference in New Issue
Block a user