Skip to content

Instantly share code, notes, and snippets.

View andrasKelle's full-sized avatar
💭
Make infrastructure great again

Andras Kelle andrasKelle

💭
Make infrastructure great again
View GitHub Profile
@andrasKelle
andrasKelle / .gitlab-ci.yml
Created October 5, 2021 08:43
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:
@andrasKelle
andrasKelle / PipelineWriter.py
Created September 21, 2021 14:34
This is an example of child pipeline generation on Gitlab
class PipelineWriter:
@staticmethod
def parent_job_template():
parent_job_template = """
stages:
- build-libs
.basic:
interruptible: false
allow_failure: false
@andrasKelle
andrasKelle / main.py
Created September 21, 2021 14:30
This is an example of child pipeline generation on Gitlab
import os
from PipelineWriter import PipelineWriter
def get_libs():
libs_path = "lib/java"
libs = os.listdir(libs_path)
return libs
def generator():