5cf60be76d
Harbor dockerhub-cache proxy handles Docker Hub pulls without needing direct Docker Hub authentication. Removes the failing index.docker.io login blocks from all build pipeline steps.
150 lines
4.9 KiB
YAML
150 lines
4.9 KiB
YAML
depends_on:
|
|
- test
|
|
when:
|
|
event: push
|
|
branch: main
|
|
steps:
|
|
build-scheduler:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
privileged: true
|
|
settings:
|
|
repo: registry.celestium.life/stonks-oracle/scheduler
|
|
registry: registry.celestium.life
|
|
custom_dns: 192.168.42.1
|
|
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
|
|
buildkitd_config: "[registry.\"docker.io\"]\n mirrors = [\"registry.celestium.life/v2/dockerhub-cache\"]\n[registry.\"ghcr.io\"]\n mirrors = [\"registry.celestium.life/v2/ghcr-cache\"]\n"
|
|
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.scheduler
|
|
context: .
|
|
backend_options:
|
|
kubernetes:
|
|
resources:
|
|
requests:
|
|
memory: 1Gi
|
|
cpu: 1000m
|
|
limits:
|
|
memory: 2Gi
|
|
cpu: 4000m
|
|
depends_on: []
|
|
build-symbol-registry:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
privileged: true
|
|
settings:
|
|
repo: registry.celestium.life/stonks-oracle/symbol-registry
|
|
registry: registry.celestium.life
|
|
custom_dns: 192.168.42.1
|
|
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
|
|
buildkitd_config: "[registry.\"docker.io\"]\n mirrors = [\"registry.celestium.life/v2/dockerhub-cache\"]\n[registry.\"ghcr.io\"]\n mirrors = [\"registry.celestium.life/v2/ghcr-cache\"]\n"
|
|
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
|
|
context: .
|
|
build_args: SERVICE_CMD=uvicorn services.symbol_registry.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-ingestion:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
privileged: true
|
|
settings:
|
|
repo: registry.celestium.life/stonks-oracle/ingestion
|
|
registry: registry.celestium.life
|
|
custom_dns: 192.168.42.1
|
|
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
|
|
buildkitd_config: "[registry.\"docker.io\"]\n mirrors = [\"registry.celestium.life/v2/dockerhub-cache\"]\n[registry.\"ghcr.io\"]\n mirrors = [\"registry.celestium.life/v2/ghcr-cache\"]\n"
|
|
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
|
|
context: .
|
|
build_args: SERVICE_CMD=python -m services.ingestion.worker
|
|
backend_options:
|
|
kubernetes:
|
|
resources:
|
|
requests:
|
|
memory: 1Gi
|
|
cpu: 1000m
|
|
limits:
|
|
memory: 2Gi
|
|
cpu: 4000m
|
|
depends_on: []
|
|
build-parser:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
privileged: true
|
|
settings:
|
|
repo: registry.celestium.life/stonks-oracle/parser
|
|
registry: registry.celestium.life
|
|
custom_dns: 192.168.42.1
|
|
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
|
|
buildkitd_config: "[registry.\"docker.io\"]\n mirrors = [\"registry.celestium.life/v2/dockerhub-cache\"]\n[registry.\"ghcr.io\"]\n mirrors = [\"registry.celestium.life/v2/ghcr-cache\"]\n"
|
|
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
|
|
context: .
|
|
build_args: SERVICE_CMD=python -m services.parser.worker
|
|
backend_options:
|
|
kubernetes:
|
|
resources:
|
|
requests:
|
|
memory: 1Gi
|
|
cpu: 1000m
|
|
limits:
|
|
memory: 2Gi
|
|
cpu: 4000m
|
|
depends_on: []
|