mirror of
https://github.com/rancher/os.git
synced 2025-08-11 11:32:28 +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
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$hash" = dev ]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
CURRENT=$(sha1sum $file | awk '{print $1}')
|
CURRENT=$(sha1sum $file | awk '{print $1}')
|
||||||
|
|
||||||
[ "$hash" = "$CURRENT" ]
|
[ "$hash" = "$CURRENT" ]
|
||||||
|
@ -35,7 +35,7 @@ generate_images()
|
|||||||
|
|
||||||
run ./scripts/bootstrap
|
run ./scripts/bootstrap
|
||||||
run ./scripts/test
|
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
|
run --assets ./scripts/dockerimages --assets ./scripts/build-images
|
||||||
finish
|
finish
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user