File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,15 @@ function calculate_kernel_version_armbian() {
45
45
46
46
declare -g ARMBIAN_KERNEL_DOCKERFILE=" kernel/Dockerfile.autogen.armbian.${inventory_id} "
47
47
48
- declare oras_version=" 1.2.0-beta.1" # @TODO bump this once it's released; yes it's much better than 1.1.x's
49
- declare oras_down_url=" https://github.com/oras-project/oras/releases/download/v${oras_version} /oras_${oras_version} _linux_amd64.tar.gz"
48
+ declare oras_version=" 1.2.0-rc.1" # @TODO bump this once it's released; yes it's much better than 1.1.x's
49
+ # determine the arch to download from current arch
50
+ declare oras_arch=" unknown"
51
+ case " $( uname -m) " in
52
+ " x86_64" ) oras_arch=" amd64" ;;
53
+ " aarch64" ) oras_arch=" arm64" ;;
54
+ * ) log error " ERROR: ARCH $( uname -m) not supported by ORAS? check https://github.com/oras-project/oras/releases" && exit 1 ;;
55
+ esac
56
+ declare oras_down_url=" https://github.com/oras-project/oras/releases/download/v${oras_version} /oras_${oras_version} _linux_${oras_arch} .tar.gz"
50
57
51
58
# Lets create a Dockerfile that will be used to obtain the artifacts needed, using ORAS binary
52
59
echo " Creating Dockerfile '${ARMBIAN_KERNEL_DOCKERFILE} '... "
You can’t perform that action at this time.
0 commit comments