1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00
Files
os/build.sh

24 lines
409 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-22 20:59:26 -07:00
rm -rf dist
2015-02-22 20:59:26 -07: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
docker cp ${DIST_CONTAINER}:/source/bin ./
2015-03-14 18:23:31 -07:00
ls -l dist/artifacts