Refactor job configuration to rename and update CV cleanup job across Docker Compose files and build workflows
Build and Push Docker Images / build (push) Successful in 7s

This commit is contained in:
2026-05-14 14:29:38 +03:00
parent 75bc9509c5
commit 3b4f5a44b6
5 changed files with 16 additions and 15 deletions
+5 -5
View File
@@ -12,7 +12,7 @@ env:
CV_MATCHER_API_IMAGE: apps/myai-cv-matcher-api CV_MATCHER_API_IMAGE: apps/myai-cv-matcher-api
RAG_API_IMAGE: apps/myai-rag-api RAG_API_IMAGE: apps/myai-rag-api
WEB_IMAGE: apps/myai-web WEB_IMAGE: apps/myai-web
JOB_IMAGE: apps/myai-job CV_CLEANUP_JOB_IMAGE: apps/myai-cv-cleanup-job
IMAGE_TAG: staging IMAGE_TAG: staging
jobs: jobs:
@@ -48,9 +48,9 @@ jobs:
run: | run: |
docker build -f web/Dockerfile -t "${REGISTRY_HOST}/${WEB_IMAGE}:${IMAGE_TAG}" . docker build -f web/Dockerfile -t "${REGISTRY_HOST}/${WEB_IMAGE}:${IMAGE_TAG}" .
- name: Build Job worker image - name: Build CV cleanup job image
run: | run: |
docker build -f Jobs/cv-cleanup-job/Dockerfile -t "${REGISTRY_HOST}/${JOB_IMAGE}:${IMAGE_TAG}" . docker build -f Jobs/cv-cleanup-job/Dockerfile -t "${REGISTRY_HOST}/${CV_CLEANUP_JOB_IMAGE}:${IMAGE_TAG}" .
- name: Push API image - name: Push API image
run: | run: |
@@ -68,6 +68,6 @@ jobs:
run: | run: |
docker push "${REGISTRY_HOST}/${WEB_IMAGE}:${IMAGE_TAG}" docker push "${REGISTRY_HOST}/${WEB_IMAGE}:${IMAGE_TAG}"
- name: Push Job worker image - name: Push CV cleanup job image
run: | run: |
docker push "${REGISTRY_HOST}/${JOB_IMAGE}:${IMAGE_TAG}" docker push "${REGISTRY_HOST}/${CV_CLEANUP_JOB_IMAGE}:${IMAGE_TAG}"
+1 -1
View File
@@ -69,7 +69,7 @@ Captcha__SecretKey=
Captcha__PublicKey= Captcha__PublicKey=
Captcha__MinimumScore=0.5 Captcha__MinimumScore=0.5
# Job worker (scheduled tasks: CV file storage cleanup, etc.) # CV cleanup job container (scheduled CV file storage cleanup)
Jobs__CvStorageCleanupEnabled=true Jobs__CvStorageCleanupEnabled=true
Jobs__CvStorageCleanupInterval=01:00:00 Jobs__CvStorageCleanupInterval=01:00:00
Jobs__CvStorageMaxTotalSizeMegabytes=40 Jobs__CvStorageMaxTotalSizeMegabytes=40
+4 -3
View File
@@ -206,9 +206,9 @@ services:
labels: labels:
- "com.centurylinklabs.watchtower.enable=true" - "com.centurylinklabs.watchtower.enable=true"
job: cv-cleanup-job:
image: registry.easysoft.ro/apps/myai-job:production image: registry.easysoft.ro/apps/myai-cv-cleanup-job:production
container_name: myai-job container_name: myai-cv-cleanup-job
depends_on: depends_on:
- api - api
environment: environment:
@@ -221,6 +221,7 @@ services:
- Logging__LogLevel__Default=${Logging__LogLevel__Default:-Information} - Logging__LogLevel__Default=${Logging__LogLevel__Default:-Information}
- Logging__LogLevel__Microsoft=${Logging__LogLevel__Microsoft:-Warning} - Logging__LogLevel__Microsoft=${Logging__LogLevel__Microsoft:-Warning}
volumes: volumes:
- /opt/myai/logs/cv-cleanup-job:/app/logs
- /opt/myai/files:/app/Files - /opt/myai/files:/app/Files
networks: networks:
- myai-network - myai-network
+3 -3
View File
@@ -206,9 +206,9 @@ services:
labels: labels:
- "com.centurylinklabs.watchtower.enable=true" - "com.centurylinklabs.watchtower.enable=true"
job: cv-cleanup-job:
image: registry.easysoft.ro/apps/myai-job:staging image: registry.easysoft.ro/apps/myai-cv-cleanup-job:staging
container_name: myai-job container_name: myai-cv-cleanup-job
depends_on: depends_on:
- api - api
environment: environment:
+3 -3
View File
@@ -226,11 +226,11 @@ services:
labels: labels:
- "com.centurylinklabs.watchtower.enable=true" - "com.centurylinklabs.watchtower.enable=true"
job: cv-cleanup-job:
build: build:
context: .. context: ..
dockerfile: Jobs/cv-cleanup-job/Dockerfile dockerfile: Jobs/cv-cleanup-job/Dockerfile
container_name: myai-job container_name: myai-cv-cleanup-job
depends_on: depends_on:
- api - api
env_file: env_file:
@@ -245,7 +245,7 @@ services:
- Logging__LogLevel__Default=${Logging__LogLevel__Default:-Information} - Logging__LogLevel__Default=${Logging__LogLevel__Default:-Information}
- Logging__LogLevel__Microsoft=${Logging__LogLevel__Microsoft:-Warning} - Logging__LogLevel__Microsoft=${Logging__LogLevel__Microsoft:-Warning}
volumes: volumes:
- ${FileStorage__Path:-../Files}:/app/Files - ../Apis/api/logs:/app/logs
networks: networks:
- myai-network - myai-network
restart: unless-stopped restart: unless-stopped