1
0
mirror of https://github.com/rancher/os.git synced 2025-06-29 00:06:49 +00:00
os/build.sh

25 lines
448 B
Bash
Raw Normal View History

2015-02-09 04:38:37 +00:00
#!/bin/bash
set -e
cd $(dirname $0)
export DOCKER_IMAGE=rancher-os-build
source ./scripts/version
./scripts/ci
2015-02-09 04:38:37 +00:00
mkdir -p dist
2015-02-21 07:33:47 +00:00
docker run --rm -it -e CHOWN_ID=$(id -u) -v $(pwd)/dist:/source/target $DOCKER_IMAGE
2015-02-23 03:59:26 +00:00
# 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}
2015-02-23 03:59:26 +00:00
fi
2015-03-15 01:23:31 +00:00
ls -l dist/artifacts