Merge remote-tracking branch 'refs/remotes/origin/eng' into eng

This commit is contained in:
Nastya 2025-02-24 22:26:30 +03:00
commit c61aa5a5a7
5 changed files with 27 additions and 14 deletions

@ -3,12 +3,9 @@ include:
file: "/templates/docker/build-template.gitlab-ci.yml"
- project: "devops/pena-continuous-integration"
file: "/templates/docker/deploy-template.gitlab-ci.yml"
- project: "devops/pena-continuous-integration"
file: "/templates/docker/service-discovery.gitlab-ci.yml"
stages:
- build
- deploy
- service-discovery
build-app:
tags:
@ -17,7 +14,7 @@ build-app:
variables:
DOCKER_BUILD_PATH: "./Dockerfile"
STAGING_BRANCH: "staging"
PRODUCTION_BRANCH: "main"
PRODUCTION_BRANCH: "eng"
deploy-to-staging:
extends: .deploy_template
@ -29,11 +26,12 @@ deploy-to-staging:
deploy-to-prod:
extends: .deploy_template
variables:
DOCKER_BUILD_PATH: "./Dockerfile"
STAGING_BRANCH: "staging"
PRODUCTION_BRANCH: "eng"
rules:
- if: "$CI_COMMIT_BRANCH == $PRODUCTION_BRANCH"
tags:
- front
- prod
service-discovery:
extends: .sd_artefacts_template

@ -0,0 +1,13 @@
version: "3"
services:
respen:
container_name: respen
restart: unless-stopped
image: $CI_REGISTRY_IMAGE/eng:$CI_COMMIT_REF_SLUG.$CI_PIPELINE_ID
hostname: respen
tty: true
networks:
- main_default
networks:
main_default:
external: true

@ -1,9 +1,8 @@
version: "3"
services:
respondent:
container_name: respondent
respondent_en:
container_name: respondent_en
restart: unless-stopped
image: $CI_REGISTRY_IMAGE/main:$CI_COMMIT_REF_SLUG.$CI_PIPELINE_ID
hostname: respondent
image: $CI_REGISTRY_IMAGE/eng:$CI_COMMIT_REF_SLUG.$CI_PIPELINE_ID
hostname: respondent_en
tty: true

@ -5,14 +5,14 @@ import { StrictMode, lazy } from "react";
const routes: RouteObject[] = [
{
path: "/",
path: "/en/",
children: [
{
index: true,
element: <App />,
},
{
path: ":quizId",
path: "/en/:quizId",
element: <App />,
},
],

@ -16,6 +16,9 @@ export const alias = {
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
build: {
assetsDir: "en/assets/",
},
resolve: {
alias,
},