fix: use BASE_IMAGE build args to pull through Harbor cache, avoid Docker Hub rate limits
Dockerfiles default to Docker Hub images (unchanged for external builds). Woodpecker passes registry.celestium.life/dockerhub-cache/... via build args.
This commit is contained in:
@@ -62,6 +62,7 @@ steps:
|
||||
context: .
|
||||
build_args:
|
||||
- SERVICE_CMD=python -m services.scheduler.app
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/library/python:3.12-slim
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
@@ -102,6 +103,7 @@ steps:
|
||||
context: .
|
||||
build_args:
|
||||
- SERVICE_CMD=uvicorn services.symbol_registry.app:app --host 0.0.0.0 --port 8000
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/library/python:3.12-slim
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
@@ -142,6 +144,7 @@ steps:
|
||||
context: .
|
||||
build_args:
|
||||
- SERVICE_CMD=python -m services.ingestion.worker
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/library/python:3.12-slim
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
@@ -182,6 +185,7 @@ steps:
|
||||
context: .
|
||||
build_args:
|
||||
- SERVICE_CMD=python -m services.parser.worker
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/library/python:3.12-slim
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
@@ -222,6 +226,7 @@ steps:
|
||||
context: .
|
||||
build_args:
|
||||
- SERVICE_CMD=python -m services.extractor.worker
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/library/python:3.12-slim
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
@@ -262,6 +267,7 @@ steps:
|
||||
context: .
|
||||
build_args:
|
||||
- SERVICE_CMD=python -m services.aggregation.worker
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/library/python:3.12-slim
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
@@ -302,6 +308,7 @@ steps:
|
||||
context: .
|
||||
build_args:
|
||||
- SERVICE_CMD=python -m services.recommendation.worker
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/library/python:3.12-slim
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
@@ -342,6 +349,7 @@ steps:
|
||||
context: .
|
||||
build_args:
|
||||
- SERVICE_CMD=uvicorn services.risk.app:app --host 0.0.0.0 --port 8000
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/library/python:3.12-slim
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
@@ -382,6 +390,7 @@ steps:
|
||||
context: .
|
||||
build_args:
|
||||
- SERVICE_CMD=python -m services.adapters.broker_adapter
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/library/python:3.12-slim
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
@@ -422,6 +431,7 @@ steps:
|
||||
context: .
|
||||
build_args:
|
||||
- SERVICE_CMD=python -m services.lake_publisher.worker
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/library/python:3.12-slim
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
@@ -462,6 +472,7 @@ steps:
|
||||
context: .
|
||||
build_args:
|
||||
- SERVICE_CMD=uvicorn services.api.app:app --host 0.0.0.0 --port 8000
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/library/python:3.12-slim
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
@@ -502,6 +513,7 @@ steps:
|
||||
context: .
|
||||
build_args:
|
||||
- SERVICE_CMD=uvicorn services.trading.app:app --host 0.0.0.0 --port 8000
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/library/python:3.12-slim
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
@@ -541,6 +553,9 @@ steps:
|
||||
dockerfile: frontend/Dockerfile
|
||||
context: frontend
|
||||
no_cache: true
|
||||
build_args:
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/library/node:24-alpine
|
||||
- NGINX_IMAGE=registry.celestium.life/dockerhub-cache/nginxinc/nginx-unprivileged:alpine
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
@@ -579,6 +594,8 @@ steps:
|
||||
- latest
|
||||
dockerfile: docker/Dockerfile.superset
|
||||
context: docker
|
||||
build_args:
|
||||
- BASE_IMAGE=registry.celestium.life/dockerhub-cache/apache/superset:latest
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
|
||||
Reference in New Issue
Block a user