feat(scripts): include web-next in dev.sh and publish.sh
This commit is contained in:
parent
e78d8c8fa8
commit
203ab5daef
@ -6,10 +6,10 @@ set -euo pipefail
|
||||
|
||||
usage() {
|
||||
cat <<'EOF'
|
||||
Lifecycle for the dev stack.
|
||||
Lifecycle for the dev stack (mysql + api-server + web-view + web-next).
|
||||
|
||||
Usage:
|
||||
scripts/dev.sh up Start mysql + api-server + web-view in the background.
|
||||
scripts/dev.sh up Start all dev services in the background.
|
||||
scripts/dev.sh down Stop the stack. mysql volume kept (DB persists).
|
||||
scripts/dev.sh reset-db Stop the stack AND drop the mysql volume; then start.
|
||||
scripts/dev.sh logs Tail logs from the running stack.
|
||||
@ -47,7 +47,7 @@ fi
|
||||
|
||||
case "${1:-}" in
|
||||
up)
|
||||
"${COMPOSE[@]}" up -d --build mysql api-server web-view
|
||||
"${COMPOSE[@]}" up -d --build mysql api-server web-view web-next
|
||||
"${COMPOSE[@]}" ps
|
||||
;;
|
||||
down)
|
||||
@ -59,10 +59,10 @@ case "${1:-}" in
|
||||
;;
|
||||
reset-db)
|
||||
"${COMPOSE[@]}" down --volumes --remove-orphans
|
||||
"${COMPOSE[@]}" up -d --build mysql api-server web-view
|
||||
"${COMPOSE[@]}" up -d --build mysql api-server web-view web-next
|
||||
;;
|
||||
logs)
|
||||
"${COMPOSE[@]}" logs -f mysql api-server web-view
|
||||
"${COMPOSE[@]}" logs -f mysql api-server web-view web-next
|
||||
;;
|
||||
status)
|
||||
if "${COMPOSE[@]}" ps --status running --services 2>/dev/null | grep -q '^mysql$'; then
|
||||
|
||||
@ -60,6 +60,7 @@ SERVICES=(
|
||||
"telegram docker/telegram/Dockerfile"
|
||||
"web docker/web/Dockerfile"
|
||||
"transfer docker/transfer/Dockerfile"
|
||||
"web-next docker/web-next/Dockerfile"
|
||||
)
|
||||
|
||||
echo "Publishing CM Bot images to ${REGISTRY_PREFIX}/cm-<service>:${IMAGE_TAG}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user