1
0
mirror of https://github.com/rancher/os.git synced 2025-06-21 20:47:04 +00:00
os/build.sh

23 lines
366 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-23 03:59:26 +00:00
rm -rf dist
2015-02-23 03:59:26 +00:00
echo "Build complete. Copying artifacts..."
DIST_CONTAINER=$(docker create ${DOCKER_IMAGE})
cleanup() {
docker rm -v ${DIST_CONTAINER}
}
trap cleanup EXIT
docker cp ${DIST_CONTAINER}:/source/dist/artifacts dist
2015-03-15 01:23:31 +00:00
ls -l dist/artifacts