From 950890a7340a041adb7d94275009bce1fedaeb82 Mon Sep 17 00:00:00 2001 From: richjohnrambo Date: Mon, 19 Oct 2026 13:17:59 +0800 Subject: [PATCH] fix: override production IM endpoints --- .gitea/workflows/deploy.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 980d776..70ddba8 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -94,11 +94,21 @@ jobs: cat > compose.olons-server-secret.yaml <<"YAML" services: olons-server: - env_file: - - .env.olons-server + environment: + OLONS_IM_INTERNAL_SECRET: ${OLONS_IM_INTERNAL_SECRET} + OLONS_IM_BASE_URL: ${OLONS_IM_BASE_URL} + OLONS_IM_HTTP_API_URL: ${OLONS_IM_HTTP_API_URL} + OLONS_IM_WS_URL: ${OLONS_IM_WS_URL} + OLONS_IM_FILE_URL: ${OLONS_IM_FILE_URL} + OLONS_IM_TENANT_CODE: ${OLONS_IM_TENANT_CODE} + OLONS_IM_INTERNAL_SERVICE: ${OLONS_IM_INTERNAL_SERVICE} YAML - 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"'"'"' + 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 '"'"' + 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" + '"'"' '