mirror of
https://github.com/rancher/os.git
synced 2025-08-01 23:17:50 +00:00
Add support for local builds for downloads
If you set the hash in scripts/download to "dev" the build.sh will use the local file from assets/
This commit is contained in:
parent
f7b5b4f83b
commit
fff517ef0b
@ -124,6 +124,10 @@ check()
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ "$hash" = dev ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
CURRENT=$(sha1sum $file | awk '{print $1}')
|
||||
|
||||
[ "$hash" = "$CURRENT" ]
|
||||
|
@ -35,7 +35,7 @@ generate_images()
|
||||
|
||||
run ./scripts/bootstrap
|
||||
run ./scripts/test
|
||||
run --assets ./scripts/build-common ./scripts/download
|
||||
run --assets ./scripts/build-common --assets ./assets ./scripts/download
|
||||
run --assets ./scripts/dockerimages --assets ./scripts/build-images
|
||||
finish
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user