mirror of
https://github.com/rancher/os.git
synced 2025-06-27 23:36:49 +00:00
25 lines
448 B
Bash
Executable File
25 lines
448 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd $(dirname $0)
|
|
|
|
export DOCKER_IMAGE=rancher-os-build
|
|
|
|
source ./scripts/version
|
|
|
|
./scripts/ci
|
|
mkdir -p dist
|
|
docker run --rm -it -e CHOWN_ID=$(id -u) -v $(pwd)/dist:/source/target $DOCKER_IMAGE
|
|
|
|
# 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}
|
|
fi
|
|
|
|
ls -l dist/artifacts
|