fix: override production IM endpoints
Deploy olons-server production / deploy (push) Failing after 35s
Deploy olons-server production / deploy (push) Failing after 35s
This commit is contained in:
@@ -94,11 +94,21 @@ jobs:
|
|||||||
cat > compose.olons-server-secret.yaml <<"YAML"
|
cat > compose.olons-server-secret.yaml <<"YAML"
|
||||||
services:
|
services:
|
||||||
olons-server:
|
olons-server:
|
||||||
env_file:
|
environment:
|
||||||
- .env.olons-server
|
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
|
YAML
|
||||||
|
|
||||||
docker compose -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 pull olons-server
|
||||||
docker compose -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 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 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"
|
||||||
|
'"'"'
|
||||||
'
|
'
|
||||||
|
|||||||
Reference in New Issue
Block a user