fix: add CACHE_BUST ARG to Dockerfile + build args to force fresh COPY layers per commit

This commit is contained in:
Celes Renata
2026-05-01 23:23:49 +00:00
parent 139fbd6342
commit 3a8c6f6c80
4 changed files with 34 additions and 11 deletions
+12 -4
View File
@@ -30,7 +30,9 @@ steps:
dockerfile: docker/Dockerfile
no_cache: true
context: .
build_args: SERVICE_CMD=python -m services.extractor.worker
build_args:
- CACHE_BUST=${CI_COMMIT_SHA}
- SERVICE_CMD=python -m services.extractor.worker
backend_options:
kubernetes:
resources:
@@ -67,7 +69,9 @@ steps:
dockerfile: docker/Dockerfile
no_cache: true
context: .
build_args: SERVICE_CMD=python -m services.aggregation.worker
build_args:
- CACHE_BUST=${CI_COMMIT_SHA}
- SERVICE_CMD=python -m services.aggregation.worker
backend_options:
kubernetes:
resources:
@@ -104,7 +108,9 @@ steps:
dockerfile: docker/Dockerfile
no_cache: true
context: .
build_args: SERVICE_CMD=python -m services.recommendation.worker
build_args:
- CACHE_BUST=${CI_COMMIT_SHA}
- SERVICE_CMD=python -m services.recommendation.worker
backend_options:
kubernetes:
resources:
@@ -141,7 +147,9 @@ steps:
dockerfile: docker/Dockerfile
no_cache: true
context: .
build_args: SERVICE_CMD=uvicorn services.risk.app:app --host 0.0.0.0 --port 8000
build_args:
- CACHE_BUST=${CI_COMMIT_SHA}
- SERVICE_CMD=uvicorn services.risk.app:app --host 0.0.0.0 --port 8000
backend_options:
kubernetes:
resources: