icon
This commit is contained in:
@@ -26,9 +26,9 @@ build-rag:
|
||||
- rag-service/target/*.jar
|
||||
expire_in: 1h
|
||||
rules:
|
||||
- changes:
|
||||
- rag-service/**/*
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
changes:
|
||||
- rag-service/**/*
|
||||
|
||||
build-gateway:
|
||||
stage: build
|
||||
@@ -46,9 +46,9 @@ build-gateway:
|
||||
- gateway-service/target/*.jar
|
||||
expire_in: 1h
|
||||
rules:
|
||||
- changes:
|
||||
- gateway-service/**/*
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
changes:
|
||||
- gateway-service/**/*
|
||||
|
||||
build-analytics:
|
||||
stage: build
|
||||
@@ -66,9 +66,9 @@ build-analytics:
|
||||
- analytics-service/target/*.jar
|
||||
expire_in: 1h
|
||||
rules:
|
||||
- changes:
|
||||
- analytics-service/**/*
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
changes:
|
||||
- analytics-service/**/*
|
||||
|
||||
build-rag-view:
|
||||
stage: build
|
||||
@@ -86,9 +86,9 @@ build-rag-view:
|
||||
- rag-view/dist
|
||||
expire_in: 1h
|
||||
rules:
|
||||
- changes:
|
||||
- rag-view/**/*
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
changes:
|
||||
- rag-view/**/*
|
||||
|
||||
# ══════════════════════════════════════════════════════════
|
||||
# PUBLISH DOCKER IMAGES
|
||||
@@ -109,9 +109,9 @@ publish-rag:
|
||||
- docker push $REGISTRY/rag-service:latest
|
||||
needs: [build-rag]
|
||||
rules:
|
||||
- changes:
|
||||
- rag-service/**/*
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
changes:
|
||||
- rag-service/**/*
|
||||
|
||||
publish-gateway:
|
||||
stage: publish
|
||||
@@ -128,9 +128,9 @@ publish-gateway:
|
||||
- docker push $REGISTRY/gateway-service:latest
|
||||
needs: [build-gateway]
|
||||
rules:
|
||||
- changes:
|
||||
- gateway-service/**/*
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
changes:
|
||||
- gateway-service/**/*
|
||||
|
||||
publish-analytics:
|
||||
stage: publish
|
||||
@@ -147,9 +147,9 @@ publish-analytics:
|
||||
- docker push $REGISTRY/analytics-service:latest
|
||||
needs: [build-analytics]
|
||||
rules:
|
||||
- changes:
|
||||
- analytics-service/**/*
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
changes:
|
||||
- analytics-service/**/*
|
||||
|
||||
publish-rag-view:
|
||||
stage: publish
|
||||
@@ -166,9 +166,9 @@ publish-rag-view:
|
||||
- docker push $REGISTRY/rag-view:latest
|
||||
needs: [build-rag-view]
|
||||
rules:
|
||||
- changes:
|
||||
- rag-view/**/*
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
changes:
|
||||
- rag-view/**/*
|
||||
|
||||
# ══════════════════════════════════════════════════════════
|
||||
# DEPLOY TO VPS
|
||||
@@ -177,8 +177,6 @@ publish-rag-view:
|
||||
.deploy_template: &deploy_setup
|
||||
stage: deploy
|
||||
image: alpine:3.20
|
||||
only:
|
||||
- main
|
||||
before_script:
|
||||
- apk add --no-cache openssh-client
|
||||
- mkdir -p ~/.ssh
|
||||
@@ -192,6 +190,10 @@ publish-rag-view:
|
||||
deploy-rag:
|
||||
<<: *deploy_setup
|
||||
needs: [publish-rag]
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
changes:
|
||||
- rag-service/**/*
|
||||
script:
|
||||
- |
|
||||
ssh $VPS_USER@$VPS_HOST << ENDSSH
|
||||
@@ -207,6 +209,10 @@ deploy-rag:
|
||||
deploy-gateway:
|
||||
<<: *deploy_setup
|
||||
needs: [publish-gateway]
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
changes:
|
||||
- gateway-service/**/*
|
||||
script:
|
||||
- |
|
||||
ssh $VPS_USER@$VPS_HOST << ENDSSH
|
||||
@@ -222,6 +228,10 @@ deploy-gateway:
|
||||
deploy-analytics:
|
||||
<<: *deploy_setup
|
||||
needs: [publish-analytics]
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
changes:
|
||||
- analytics-service/**/*
|
||||
script:
|
||||
- |
|
||||
ssh $VPS_USER@$VPS_HOST << ENDSSH
|
||||
@@ -237,6 +247,10 @@ deploy-analytics:
|
||||
deploy-rag-view:
|
||||
<<: *deploy_setup
|
||||
needs: [publish-rag-view]
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
changes:
|
||||
- rag-view/**/*
|
||||
script:
|
||||
- |
|
||||
ssh $VPS_USER@$VPS_HOST << ENDSSH
|
||||
@@ -252,8 +266,10 @@ deploy-rag-view:
|
||||
# Deploy all services at once (manual trigger)
|
||||
deploy-all:
|
||||
<<: *deploy_setup
|
||||
needs: [publish-rag, publish-gateway, publish-analytics]
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
when: manual
|
||||
needs: []
|
||||
script:
|
||||
- |
|
||||
ssh $VPS_USER@$VPS_HOST << ENDSSH
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
VITE_API_BASE_URL=https://balexvic.com
|
||||
@@ -4,4 +4,9 @@ import react from "@vitejs/plugin-react";
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
base: "/ragview/",
|
||||
define: {
|
||||
"import.meta.env.VITE_API_BASE_URL": JSON.stringify(
|
||||
process.env.VITE_API_BASE_URL || "https://balexvic.com"
|
||||
),
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user