From a486e3bb882b8df5fdc2a9d058ef8296dbe2fe2b Mon Sep 17 00:00:00 2001 From: Yera All Date: Sat, 4 Apr 2026 03:18:33 +0500 Subject: [PATCH] Match production gateway container name in hotfix job --- .gitlab-ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ced2040..159a202 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -229,12 +229,15 @@ hotfix-analyst-assets: - test script: - command -v docker >/dev/null - - docker ps --format '{{.Names}}' | grep -x 'call-center-api-gateway' - - docker cp ui/analyst/index.html call-center-api-gateway:/app/ui/analyst/index.html - - docker cp ui/analyst/app.js call-center-api-gateway:/app/ui/analyst/app.js - - docker cp ui/analyst/mock-analytics.json call-center-api-gateway:/app/ui/analyst/mock-analytics.json - - docker cp ui/operator/styles.css call-center-api-gateway:/app/ui/operator/styles.css - - docker restart call-center-api-gateway + - | + GATEWAY_CONTAINER="$(docker ps --format '{{.Names}}' | grep -E '^call-center-api-gateway($|[-_])' | head -n1)" + test -n "$GATEWAY_CONTAINER" + echo "Using gateway container: $GATEWAY_CONTAINER" + docker cp ui/analyst/index.html "$GATEWAY_CONTAINER:/app/ui/analyst/index.html" + docker cp ui/analyst/app.js "$GATEWAY_CONTAINER:/app/ui/analyst/app.js" + docker cp ui/analyst/mock-analytics.json "$GATEWAY_CONTAINER:/app/ui/analyst/mock-analytics.json" + docker cp ui/operator/styles.css "$GATEWAY_CONTAINER:/app/ui/operator/styles.css" + docker restart "$GATEWAY_CONTAINER" rules: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' when: manual