From a53f7b12fb0568f171f2ac8eb8975b59b987dbae Mon Sep 17 00:00:00 2001 From: Yera All Date: Sat, 4 Apr 2026 03:11:36 +0500 Subject: [PATCH] Add analyst asset hotfix job for prod runner --- .gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d8fd57d..e467a51 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -215,3 +215,23 @@ deploy-production-source: - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - if: '$CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' allow_failure: false + +hotfix-analyst-assets: + stage: deploy + tags: + - call-center-prod + needs: + - 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 + rules: + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' + when: manual + - when: never + allow_failure: false