Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions tools/bin/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,10 @@ FROM ghcr.io/uniget-org/tools/base:${ref} AS prepare
ARG name
ARG version
RUN <<EOF
echo "### Setting architecture string for ${TARGETPLATFORM}"
case "${arch}" in
x86_64)
export arch_suffix="${arch}"
;;
aarch64)
export arch_suffix="${alt_arch}"
;;
*)
echo "ERROR: Unsupported architecture ${arch}."
exit 1
;;
esac
echo " Using ${arch_suffix}"

check-github-release-asset "marcosnils/bin" "v${version}" "bin_${version}_Linux_${arch_suffix}"
check-github-release-asset "marcosnils/bin" "v${version}" "bin_${version}_linux_${alt_arch}"

echo "### Downloading bin ${version}"
curl --silent --location --fail --output "${prefix}${target}/bin/bin" \
"https://github.com/marcosnils/bin/releases/download/v${version}/bin_${version}_Linux_${arch_suffix}"
"https://github.com/marcosnils/bin/releases/download/v${version}/bin_${version}_linux_${alt_arch}"
chmod +x "${prefix}${target}/bin/bin"
EOF
2 changes: 1 addition & 1 deletion tools/bin/manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: bin
version: "0.17.0"
version: "0.17.2"
check: ${binary} --version | grep ^bin | cut -d' ' -f3
platforms:
- linux/amd64
Expand Down