Files
huike-back/local_build.sh
T
weli 44c320d8fa chore add core rust project files and diesel migrations
Track required workspace crates, scripts, and historical diesel migrations so the repository contains the complete runnable backend baseline.

Made-with: Cursor
2026-04-23 17:20:01 +08:00

36 lines
781 B
Bash
Executable File

#!/usr/bin/env bash
set -x
docker pull ghcr.io/alchemy-studio/htybasic
OPERATOR=1
OPERATOR_PWD=1
FORM_API_KEY=1
function build_htyws() {
echo 'build htyws...'
docker build -f htyws/container/local/Dockerfile \
-t ghcr.io/alchemy-studio/htyws:latest \
--build-arg OPERATOR=${OPERATOR} \
--build-arg OPERATOR_PWD=${OPERATOR_PWD} \
--build-arg FORM_API_KEY=${FORM_API_KEY} \
.
}
function build_htyuc() {
echo 'build htyuc...'
docker build -f htyuc/container/local/Dockerfile \
-t ghcr.io/alchemy-studio/htyuc:latest \
--build-arg OPERATOR=${OPERATOR} \
--build-arg OPERATOR_PWD=${OPERATOR_PWD} \
--build-arg FORM_API_KEY=${FORM_API_KEY} .
}
case "$1" in
htyws) build_htyws ;;
htyuc) build_htyuc ;;
*) build_htyws; build_htyuc;
esac
echo "done"