From dffd47294e01d3b0a475250f5aca63752777eaae Mon Sep 17 00:00:00 2001 From: richjohnrambo Date: Mon, 19 Oct 2026 13:20:27 +0800 Subject: [PATCH] fix: preserve production compose variables --- .gitea/workflows/deploy.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 70ddba8..3c425f4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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"