2015-02-08 21:38:37 -07:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd $(dirname $0)
|
|
|
|
|
|
|
|
export DOCKER_IMAGE=rancher-os-build
|
|
|
|
|
2015-03-20 12:43:24 -07:00
|
|
|
source ./scripts/version
|
|
|
|
|
|
|
|
./scripts/ci
|
2015-02-08 21:38:37 -07:00
|
|
|
mkdir -p dist
|
2015-02-21 00:33:47 -07:00
|
|
|
docker run --rm -it -e CHOWN_ID=$(id -u) -v $(pwd)/dist:/source/target $DOCKER_IMAGE
|
2015-02-22 20:59:26 -07:00
|
|
|
|
|
|
|
# Stupidest argparse ever
|
|
|
|
if echo "$@" | grep -q -- '--images'; then
|
|
|
|
./scripts/build-extra-images
|
|
|
|
fi
|
|
|
|
|
|
|
|
# And again
|
|
|
|
if echo "$@" | grep -q -- '--push'; then
|
2015-03-20 12:43:24 -07:00
|
|
|
docker push rancher/ubuntuconsole:${VERSION}
|
2015-02-22 20:59:26 -07:00
|
|
|
fi
|
2015-03-14 18:23:31 -07:00
|
|
|
|
|
|
|
ls -l dist/artifacts
|