mirror of
https://github.com/docker/compose.git
synced 2026-11-17 13:45:39 +00:00
Scenario-DSL coverage for the jobs entry points: - up refuses a project declaring an active scheduled job before creating any resource; - run executes a manual job like a service, starting its depends_on services first, and refuses a schedule-only job; - a job's own env_file feeds its environment through run — the materialization happens before environment resolution; - a job depending on another job runs the dependency to completion first, through the exact machinery a service dependency uses. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
22 lines
420 B
YAML
22 lines
420 B
YAML
services:
|
|
db:
|
|
image: alpine
|
|
init: true
|
|
command: sleep infinity
|
|
jobs:
|
|
prep:
|
|
image: alpine
|
|
command: sh -c 'echo "prep done"'
|
|
triggers:
|
|
manual: true
|
|
depends_on:
|
|
db:
|
|
condition: service_started
|
|
deploy:
|
|
image: alpine
|
|
command: sh -c 'echo "deploy done"'
|
|
triggers:
|
|
manual: true
|
|
depends_on:
|
|
prep:
|
|
condition: service_completed_successfully
|