This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,26 @@ ARG name
7
7
ARG version
8
8
COPY k3s.service ${prefix}${target}/etc/systemd/system/
9
9
RUN <<EOF
10
- check-github-release-asset "k3s-io/k3s" "${version}" "k3s"
10
+ echo "### Setting architecture string for ${TARGETPLATFORM}"
11
+ case "${arch}" in
12
+ x86_64)
13
+ export arch_suffix=""
14
+ ;;
15
+ aarch64)
16
+ export arch_suffix="-${alt_arch}"
17
+ ;;
18
+ *)
19
+ echo "ERROR: Unsupported architecture ${arch}."
20
+ exit 1
21
+ ;;
22
+ esac
23
+ echo " Using ${arch_suffix}"
24
+
25
+ check-github-release-asset "k3s-io/k3s" "v${version}" "k3s${arch_suffix}
26
+
27
+ echo "### Downloading ${name} ${version}"
11
28
curl --silent --location --fail --output "${prefix}${target}/bin/k3s" \
12
- "https://github.com/k3s-io/k3s/releases/download/v${version}/k3s"
29
+ "https://github.com/k3s-io/k3s/releases/download/v${version}/k3s${arch_suffix} "
13
30
chmod +x "${prefix}${target}/bin/k3s"
14
31
"${prefix}${target}/bin/k3s" completion bash >"${prefix}${target}/share/bash-completion/completions/k3s"
15
32
"${prefix}${target}/bin/k3s" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_k3s"
Original file line number Diff line number Diff line change 1
1
name : k3s
2
2
version : " 1.27.4+k3s1"
3
3
check : ${binary} --version | head -n 1 | cut -d' ' -f3 | tr -d v
4
+ platforms :
5
+ - linux/amd64
6
+ - linux/arm64
4
7
tags :
5
8
- org/cncf
6
9
- type/cli
You can’t perform that action at this time.
0 commit comments