fix: preserve production compose variables
Deploy olons-server production / deploy (push) Successful in 1m9s

This commit is contained in:
richjohnrambo
2026-10-19 13:20:27 +08:00
parent 950890a734
commit dffd47294e
+6 -3
View File
@@ -104,9 +104,12 @@ jobs:
OLONS_IM_INTERNAL_SERVICE: ${OLONS_IM_INTERNAL_SERVICE}
YAML
docker compose --env-file .env.olons-server -f "$base_file" -f compose.olons-server-secret.yaml pull olons-server
docker compose --env-file .env.olons-server -f "$base_file" -f compose.olons-server-secret.yaml up -d --no-deps --wait olons-server
docker compose --env-file .env.olons-server -f "$base_file" -f compose.olons-server-secret.yaml exec -T olons-server sh -c '"'"'
set -a
. ./.env.olons-server
set +a
docker compose -f "$base_file" -f compose.olons-server-secret.yaml pull olons-server
docker compose -f "$base_file" -f compose.olons-server-secret.yaml up -d --no-deps --wait olons-server
docker compose -f "$base_file" -f compose.olons-server-secret.yaml exec -T olons-server sh -c '"'"'
test -n "$OLONS_IM_INTERNAL_SECRET"
test "$OLONS_IM_BASE_URL" = "https://im-api.yuexuan.shop"
test "$OLONS_IM_HTTP_API_URL" = "https://im-api.yuexuan.shop/v1/im"