44c320d8fa
Track required workspace crates, scripts, and historical diesel migrations so the repository contains the complete runnable backend baseline. Made-with: Cursor
36 lines
781 B
Bash
Executable File
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"
|