Skip to content

Instantly share code, notes, and snippets.

@andrasKelle
Created October 5, 2021 08:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andrasKelle/4a7d32c8e2caf73ad6de273ae6c9ab8b to your computer and use it in GitHub Desktop.
Save andrasKelle/4a7d32c8e2caf73ad6de273ae6c9ab8b to your computer and use it in GitHub Desktop.
Example CI configuration for generated pipelines
stages:
- child-pipeline-generator
- child-pipeline-trigger
generate-child-pipeline:
stage: child-pipeline-generator
image: python:3.9-slim-buster
script:
- python3 main.py
artifacts:
paths:
- child-pipeline-gitlab-ci.yml
trigger-child-pipeline:
stage: child-pipeline-trigger
trigger:
include:
- artifact: child-pipeline-gitlab-ci.yml
job: generate-child-pipeline
strategy: depend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment