Skip to content

Commit 612e3f2

Browse files
authored
Move the suffixed k3s binary (#42)
Ensure built image contains a `k3s` binary without an arch suffix Fixup: 2a8e7ee Signed-off-by: Michael Fritch <mfritch@suse.com>
1 parent 2a8e7ee commit 612e3f2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/download

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ if [[ -z "${LOCAL_ARTIFACTS}" ]]; then
3333
curl -sfL -R -o "k3s${SUFFIX}" https://github.com/k3s-io/k3s/releases/download/${URI_VERSION}/k3s${SUFFIX}
3434
curl -sfL -R -o sha256sum-${ARCH}.txt https://github.com/k3s-io/k3s/releases/download/${URI_VERSION}/sha256sum-${ARCH}.txt
3535
fi
36-
grep -E "^[0-9a-f]+ k3s${SUFFIX}$" sha256sum-${ARCH}.txt | sha256sum -c -
36+
mv -f "k3s${SUFFIX}" k3s || true
37+
sed -i "s/k3s${SUFFIX}$/k3s/" sha256sum-${ARCH}.txt
38+
grep -E "^[0-9a-f]+ k3s$" sha256sum-${ARCH}.txt | sha256sum -c -
3739
popd
3840
else
3941
cp local/* artifacts

0 commit comments

Comments
 (0)