fix: run steps in parallel within each workflow

All build steps and test steps now have depends_on: [] so they
execute concurrently within their workflow instead of sequentially.
This commit is contained in:
Celes Renata
2026-04-20 04:07:26 +00:00
parent 40eacdf8d2
commit a735e569b2
4 changed files with 239 additions and 300 deletions
+64 -82
View File
@@ -1,11 +1,8 @@
# Workflow 2: Build batch 1 (node B)
depends_on:
- test
- test
when:
event: push
branch: main
steps:
build-scheduler:
image: woodpeckerci/plugin-docker-buildx
@@ -15,26 +12,22 @@ steps:
registry: registry.celestium.life
custom_dns: 192.168.42.1
buildx_flags: --driver-opt network=host
buildkitd_config: |
[registry."docker.io"]
mirrors = ["registry.celestium.life/v2/dockerhub-cache"]
[registry."ghcr.io"]
mirrors = ["registry.celestium.life/v2/ghcr-cache"]
no_proxy: "10.0.0.0/8,192.168.0.0/16,127.0.0.1,localhost,.local,.celestium.life"
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"
no_proxy: 10.0.0.0/8,192.168.0.0/16,127.0.0.1,localhost,.local,.celestium.life
logins:
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
- registry: https://index.docker.io/v1/
username:
from_secret: docker_username
password:
from_secret: docker_password
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
- registry: https://index.docker.io/v1/
username:
from_secret: docker_username
password:
from_secret: docker_password
tags:
- ${CI_COMMIT_SHA}
- latest
- ${CI_COMMIT_SHA}
- latest
dockerfile: docker/Dockerfile.scheduler
context: .
backend_options:
@@ -46,7 +39,7 @@ steps:
limits:
memory: 2Gi
cpu: 4000m
depends_on: []
build-symbol-registry:
image: woodpeckerci/plugin-docker-buildx
privileged: true
@@ -55,29 +48,25 @@ steps:
registry: registry.celestium.life
custom_dns: 192.168.42.1
buildx_flags: --driver-opt network=host
buildkitd_config: |
[registry."docker.io"]
mirrors = ["registry.celestium.life/v2/dockerhub-cache"]
[registry."ghcr.io"]
mirrors = ["registry.celestium.life/v2/ghcr-cache"]
no_proxy: "10.0.0.0/8,192.168.0.0/16,127.0.0.1,localhost,.local,.celestium.life"
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"
no_proxy: 10.0.0.0/8,192.168.0.0/16,127.0.0.1,localhost,.local,.celestium.life
logins:
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
- registry: https://index.docker.io/v1/
username:
from_secret: docker_username
password:
from_secret: docker_password
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
- registry: https://index.docker.io/v1/
username:
from_secret: docker_username
password:
from_secret: docker_password
tags:
- ${CI_COMMIT_SHA}
- latest
- ${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"
build_args: SERVICE_CMD=uvicorn services.symbol_registry.app:app --host 0.0.0.0 --port 8000
backend_options:
kubernetes:
resources:
@@ -87,7 +76,7 @@ steps:
limits:
memory: 2Gi
cpu: 4000m
depends_on: []
build-ingestion:
image: woodpeckerci/plugin-docker-buildx
privileged: true
@@ -96,29 +85,25 @@ steps:
registry: registry.celestium.life
custom_dns: 192.168.42.1
buildx_flags: --driver-opt network=host
buildkitd_config: |
[registry."docker.io"]
mirrors = ["registry.celestium.life/v2/dockerhub-cache"]
[registry."ghcr.io"]
mirrors = ["registry.celestium.life/v2/ghcr-cache"]
no_proxy: "10.0.0.0/8,192.168.0.0/16,127.0.0.1,localhost,.local,.celestium.life"
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"
no_proxy: 10.0.0.0/8,192.168.0.0/16,127.0.0.1,localhost,.local,.celestium.life
logins:
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
- registry: https://index.docker.io/v1/
username:
from_secret: docker_username
password:
from_secret: docker_password
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
- registry: https://index.docker.io/v1/
username:
from_secret: docker_username
password:
from_secret: docker_password
tags:
- ${CI_COMMIT_SHA}
- latest
- ${CI_COMMIT_SHA}
- latest
dockerfile: docker/Dockerfile
context: .
build_args: "SERVICE_CMD=python -m services.ingestion.worker"
build_args: SERVICE_CMD=python -m services.ingestion.worker
backend_options:
kubernetes:
resources:
@@ -128,7 +113,7 @@ steps:
limits:
memory: 2Gi
cpu: 4000m
depends_on: []
build-parser:
image: woodpeckerci/plugin-docker-buildx
privileged: true
@@ -137,29 +122,25 @@ steps:
registry: registry.celestium.life
custom_dns: 192.168.42.1
buildx_flags: --driver-opt network=host
buildkitd_config: |
[registry."docker.io"]
mirrors = ["registry.celestium.life/v2/dockerhub-cache"]
[registry."ghcr.io"]
mirrors = ["registry.celestium.life/v2/ghcr-cache"]
no_proxy: "10.0.0.0/8,192.168.0.0/16,127.0.0.1,localhost,.local,.celestium.life"
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"
no_proxy: 10.0.0.0/8,192.168.0.0/16,127.0.0.1,localhost,.local,.celestium.life
logins:
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
- registry: https://index.docker.io/v1/
username:
from_secret: docker_username
password:
from_secret: docker_password
- registry: https://registry.celestium.life
username:
from_secret: harbor_username
password:
from_secret: harbor_password
- registry: https://index.docker.io/v1/
username:
from_secret: docker_username
password:
from_secret: docker_password
tags:
- ${CI_COMMIT_SHA}
- latest
- ${CI_COMMIT_SHA}
- latest
dockerfile: docker/Dockerfile
context: .
build_args: "SERVICE_CMD=python -m services.parser.worker"
build_args: SERVICE_CMD=python -m services.parser.worker
backend_options:
kubernetes:
resources:
@@ -169,3 +150,4 @@ steps:
limits:
memory: 2Gi
cpu: 4000m
depends_on: []