Skip to content

Instantly share code, notes, and snippets.

@faniska
Forked from andrasKelle/.gitlab-ci.yml
Created January 17, 2023 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save faniska/378479d2714dc8bc56f946204b686352 to your computer and use it in GitHub Desktop.
Save faniska/378479d2714dc8bc56f946204b686352 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