Skip to content

wonderix/py-cicd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-cicd

Python DSL fon concourse

Example

from concourse import Pipeline, GitRepo

with Pipeline("c21s", __file__) as pipeline:
    pipeline.resource("shalm", GitRepo("https://github.com/wonderix/shalm"))
    with pipeline.job("create-cluster") as job:
        shalm_dir = job.get("shalm")
        cluster_name = "xxx"


        @job.task()
        def create_shoot():
            print("Create cluster {}".format(cluster_name))
            return cluster_name


        @job.task(secrets={"home": "HOME"})
        def install_shalm(home=None):
            print("HOME=" + home)
            print("Installing shalm {} into {}".format(shalm_dir, create_shoot()))
            return "Hello"


        job = pipeline.job("test-cluster")
        shalm_dir = job.get("shalm")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages