ci: build image and deploy via docker compose

This commit is contained in:
Konturai DevOps
2026-04-30 02:04:21 +05:00
parent 3918ce666e
commit 411cf44742
3 changed files with 57 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env sh
set -eu
IMAGE_REPO=${1:-""}
IMAGE_TAG=${2:-"latest"}
if [ -z "$IMAGE_REPO" ]; then
echo "usage: $0 <image_repo> <image_tag>" >&2
exit 2
fi
export IMAGE_REPO
export IMAGE_TAG
echo "Deploying $IMAGE_REPO:$IMAGE_TAG"
docker compose pull realtime_voice || true
docker compose up -d --force-recreate realtime_voice
docker image prune -f >/dev/null 2>&1 || true
echo "Done"