fix: image urls in article card
Build Newspaper Extractor Backend / build-newspaper-backend (push) Successful in 30m17s Details
Build Newspaper Extractor Frontend / build-newspaper-frontend (push) Successful in 4m43s Details

This commit is contained in:
Deep Koluguri 2026-07-09 12:54:27 -04:00
parent 4721846c8f
commit e68cc23993
4 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: backend
image: 192.168.8.250:5000/agentic-os/newspaper-extractor-backend:latest
image: 192.168.8.250:5000/agentic-os/newspaper-extractor-backend:v2
imagePullPolicy: Always
env:
- name: DATABASE_URL

View File

@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: worker
image: 192.168.8.250:5000/agentic-os/newspaper-extractor-backend:latest
image: 192.168.8.250:5000/agentic-os/newspaper-extractor-backend:v2
imagePullPolicy: Always
command: ["celery", "-A", "app.tasks.celery_app", "worker", "--loglevel=info", "-P", "solo"]
env:

View File

@ -24,7 +24,7 @@ spec:
args:
- "--context=dir:///workspace/newspaper-extractor/backend"
- "--dockerfile=Dockerfile"
- "--destination=registry.platform-data.svc.cluster.local:5000/agentic-os/newspaper-extractor-backend:latest"
- "--destination=registry.platform-data.svc.cluster.local:5000/agentic-os/newspaper-extractor-backend:v2"
- "--insecure"
- "--skip-tls-verify"
- "--cache=false"

View File

@ -21,7 +21,7 @@ export function ArticleCard({ article: initialArticle }: ArticleCardProps) {
const isNegative = sentimentScore < -0.3;
const imageUrl = article.image_path
? `/api/images/${article.image_path.split('/').pop()}`
? `/api/images/${article.image_path.replace('/data/storage/', '')}`
: null;
const handleSave = async () => {