Files
stonks-oracle/.woodpecker/build-3.yml
T
Celes Renata d762a2b76f fix: use RUN --network=host for npm ci in BuildKit
BuildKit sandbox DNS cannot resolve registry.npmjs.org. Using
--network=host on the RUN step lets npm use the host network stack
directly, bypassing the broken sandbox DNS.
2026-07-13 04:47:37 +00:00

275 lines
8.1 KiB
YAML

depends_on:
- test
when:
event: push
branch: main
clone:
git:
image: woodpeckerci/plugin-git
settings:
remote: http://10.43.73.77:3000/admin/stonks-oracle.git
steps:
build-broker-adapter:
image: woodpeckerci/plugin-docker-buildx
privileged: true
settings:
repo: registry.celestium.life/stonks-oracle/broker-adapter
registry: registry.celestium.life
buildx_image: registry.celestium.life/dockerhub-cache/moby/buildkit:buildx-stable-1
add_host: registry.celestium.life:10.1.1.12
buildx_flags: --driver-opt network=host
insecure: true
buildkit_config: |
[registry."registry.celestium.life"]
insecure = true
[registry."docker.io"]
mirrors = ["registry.celestium.life/v2/dockerhub-cache"]
[registry."ghcr.io"]
mirrors = ["registry.celestium.life/v2/ghcr-cache"]
http_proxy: ""
https_proxy: ""
no_proxy: ""
logins:
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
tags:
- ${CI_COMMIT_SHA}
- latest
dockerfile: docker/Dockerfile
no_cache: true
context: .
build_args:
- CACHE_BUST=${CI_COMMIT_SHA}
- SERVICE_CMD=python -m services.adapters.broker_adapter
backend_options:
kubernetes:
resources:
requests:
memory: 1Gi
cpu: 1000m
limits:
memory: 2Gi
cpu: 4000m
depends_on: []
build-lake-publisher:
image: woodpeckerci/plugin-docker-buildx
privileged: true
settings:
repo: registry.celestium.life/stonks-oracle/lake-publisher
registry: registry.celestium.life
buildx_image: registry.celestium.life/dockerhub-cache/moby/buildkit:buildx-stable-1
add_host: registry.celestium.life:10.1.1.12
buildx_flags: --driver-opt network=host
insecure: true
buildkit_config: |
[registry."registry.celestium.life"]
insecure = true
[registry."docker.io"]
mirrors = ["registry.celestium.life/v2/dockerhub-cache"]
[registry."ghcr.io"]
mirrors = ["registry.celestium.life/v2/ghcr-cache"]
http_proxy: ""
https_proxy: ""
no_proxy: ""
logins:
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
tags:
- ${CI_COMMIT_SHA}
- latest
dockerfile: docker/Dockerfile
no_cache: true
context: .
build_args:
- CACHE_BUST=${CI_COMMIT_SHA}
- SERVICE_CMD=python -m services.lake_publisher.worker
backend_options:
kubernetes:
resources:
requests:
memory: 1Gi
cpu: 1000m
limits:
memory: 2Gi
cpu: 4000m
depends_on: []
build-query-api:
image: woodpeckerci/plugin-docker-buildx
privileged: true
settings:
repo: registry.celestium.life/stonks-oracle/query-api
registry: registry.celestium.life
buildx_image: registry.celestium.life/dockerhub-cache/moby/buildkit:buildx-stable-1
add_host: registry.celestium.life:10.1.1.12
buildx_flags: --driver-opt network=host
insecure: true
buildkit_config: |
[registry."registry.celestium.life"]
insecure = true
[registry."docker.io"]
mirrors = ["registry.celestium.life/v2/dockerhub-cache"]
[registry."ghcr.io"]
mirrors = ["registry.celestium.life/v2/ghcr-cache"]
http_proxy: ""
https_proxy: ""
no_proxy: ""
logins:
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
tags:
- ${CI_COMMIT_SHA}
- latest
dockerfile: docker/Dockerfile
no_cache: true
context: .
build_args:
- CACHE_BUST=${CI_COMMIT_SHA}
- SERVICE_CMD=uvicorn services.api.app:app --host 0.0.0.0 --port 8000
backend_options:
kubernetes:
resources:
requests:
memory: 1Gi
cpu: 1000m
limits:
memory: 2Gi
cpu: 4000m
depends_on: []
build-trading-engine:
image: woodpeckerci/plugin-docker-buildx
privileged: true
settings:
repo: registry.celestium.life/stonks-oracle/trading-engine
registry: registry.celestium.life
buildx_image: registry.celestium.life/dockerhub-cache/moby/buildkit:buildx-stable-1
add_host: registry.celestium.life:10.1.1.12
buildx_flags: --driver-opt network=host
insecure: true
buildkit_config: |
[registry."registry.celestium.life"]
insecure = true
[registry."docker.io"]
mirrors = ["registry.celestium.life/v2/dockerhub-cache"]
[registry."ghcr.io"]
mirrors = ["registry.celestium.life/v2/ghcr-cache"]
http_proxy: ""
https_proxy: ""
no_proxy: ""
logins:
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
tags:
- ${CI_COMMIT_SHA}
- latest
dockerfile: docker/Dockerfile
no_cache: true
context: .
build_args:
- CACHE_BUST=${CI_COMMIT_SHA}
- SERVICE_CMD=uvicorn services.trading.app:app --host 0.0.0.0 --port 8000
backend_options:
kubernetes:
resources:
requests:
memory: 1Gi
cpu: 1000m
limits:
memory: 2Gi
cpu: 4000m
depends_on: []
build-dashboard:
image: woodpeckerci/plugin-docker-buildx
privileged: true
settings:
repo: registry.celestium.life/stonks-oracle/dashboard
registry: registry.celestium.life
buildx_image: registry.celestium.life/dockerhub-cache/moby/buildkit:buildx-stable-1
add_host: registry.celestium.life:10.1.1.12
buildx_flags: --driver-opt network=host --allow network.host
insecure: true
buildkit_config: |
[registry."registry.celestium.life"]
insecure = true
[registry."docker.io"]
mirrors = ["registry.celestium.life/v2/dockerhub-cache"]
[registry."ghcr.io"]
mirrors = ["registry.celestium.life/v2/ghcr-cache"]
http_proxy: ""
https_proxy: ""
no_proxy: ""
logins:
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
tags:
- ${CI_COMMIT_SHA}
- latest
dockerfile: frontend/Dockerfile
context: frontend
no_cache: true
backend_options:
kubernetes:
resources:
requests:
memory: 1Gi
cpu: 1000m
limits:
memory: 2Gi
cpu: 4000m
depends_on: []
build-superset:
image: woodpeckerci/plugin-docker-buildx
privileged: true
settings:
repo: registry.celestium.life/stonks-oracle/superset
registry: registry.celestium.life
buildx_image: registry.celestium.life/dockerhub-cache/moby/buildkit:buildx-stable-1
add_host: registry.celestium.life:10.1.1.12
buildx_flags: --driver-opt network=host
insecure: true
buildkit_config: |
[registry."registry.celestium.life"]
insecure = true
[registry."docker.io"]
mirrors = ["registry.celestium.life/v2/dockerhub-cache"]
[registry."ghcr.io"]
mirrors = ["registry.celestium.life/v2/ghcr-cache"]
http_proxy: ""
https_proxy: ""
no_proxy: ""
logins:
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
tags:
- ${CI_COMMIT_SHA}
- latest
dockerfile: docker/Dockerfile.superset
context: docker
backend_options:
kubernetes:
resources:
requests:
memory: 1Gi
cpu: 1000m
limits:
memory: 2Gi
cpu: 4000m
depends_on: []