mirror of
https://github.com/rancher/os-kernel.git
synced 2025-09-24 19:49:45 +00:00
hello world
This commit is contained in:
20
build.sh
Executable file
20
build.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
export DOCKER_IMAGE=rancher-os-kernel-build
|
||||
|
||||
./scripts/ci
|
||||
|
||||
rm -rf dist
|
||||
|
||||
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
|
||||
|
||||
ls -l dist/artifacts
|
Reference in New Issue
Block a user