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