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
17 changes: 1 addition & 16 deletions tools/policy/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,7 @@ SHELL [ "bash", "-clo", "errexit" ]
ARG name
ARG version
RUN --mount=type=cache,target=/var/cache/uniget/download <<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}"

url="https://github.com/opcr-io/policy/releases/download/v${version}/policy${version}_linux_${arch_suffix}.zip"
url="https://github.com/opcr-io/policy/releases/download/v${version}/policy_linux_${alt_arch}.zip"
filename="$(basename "${url}")"

check-github-release-asset "opcr-io/policy" "v${version}" "${filename}"
Expand Down
2 changes: 1 addition & 1 deletion tools/policy/manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# yaml-language-server: $schema=https://tools.uniget.dev/schema.yaml
$schema: https://tools.uniget.dev/schema.yaml
name: policy
version: "0.3.2"
version: "0.3.3"
check: ${binary} version | grep ^version | cut -d' ' -f2
platforms:
- linux/amd64
Expand Down