1
0
mirror of https://github.com/rancher/os.git synced 2025-06-28 15:56:58 +00:00
os/build.sh
2015-03-20 12:43:24 -07:00

25 lines
448 B
Bash
Executable File

#!/bin/bash
set -e
cd $(dirname $0)
export DOCKER_IMAGE=rancher-os-build
source ./scripts/version
./scripts/ci
mkdir -p dist
docker run --rm -it -e CHOWN_ID=$(id -u) -v $(pwd)/dist:/source/target $DOCKER_IMAGE
# Stupidest argparse ever
if echo "$@" | grep -q -- '--images'; then
./scripts/build-extra-images
fi
# And again
if echo "$@" | grep -q -- '--push'; then
docker push rancher/ubuntuconsole:${VERSION}
fi
ls -l dist/artifacts