1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 06:11:12 +00:00
Files
os/build.sh

25 lines
448 B
Bash
Raw Normal View History

2015-02-08 21:38:37 -07:00
#!/bin/bash
set -e
cd $(dirname $0)
export DOCKER_IMAGE=rancher-os-build
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
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