diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a68cf11..b430871 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,17 +1,24 @@ stages: - generate + - deploy generate-child-pipeline: stage: generate image: alpine:latest script: - apk add --no-cache bash - - ./ci-scripts/generate-pipeline.sh > child-pipeline.yml + - ./ci-scripts/generate-child-pipeline.sh > child-pipeline.yml artifacts: paths: - child-pipeline.yml + +trigger-child-pipeline: + stage: deploy trigger: include: - artifact: child-pipeline.yml job: generate-child-pipeline strategy: depend + needs: + - job: generate-child-pipeline + artifacts: true