feat: add origin Docker image and release workflow from official hapi repo

Build from tiann/hapi main branch, tag as origin.

via HAPI

Co-Authored-By: HAPI <[email protected]>
This commit is contained in:
i
2026-05-22 14:45:48 +08:00
co-authored by HAPI
parent 2a44d333f2
commit f23b40f554
4 changed files with 196 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ARCH=$(uname -m)
case "$ARCH" in
x86_64)
HAPI_ARCH="amd64"
;;
aarch64|arm64)
HAPI_ARCH="arm64"
;;
*)
echo "Unsupported architecture: $ARCH"
exit 1
;;
esac
docker build \
--build-arg "TARGETARCH=${HAPI_ARCH}" \
-t "hapi:origin" \
-f "$SCRIPT_DIR/Dockerfile" \
"$SCRIPT_DIR/"
echo "Built hapi:origin for ${HAPI_ARCH}"