Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

GIT Workflows

The workflow example has showed you how you can included sub-workflows into your build and by this form a bigger job graph. But this was limited to files in the same repository/project. With the git job type you can included a sub-workflow from a remote git repository. This can be very useful if your project consists of several repositories or if you want to include an external workflow like shown in the slack integraion example.

To make use of it define a job like this:

{
    "version": 1,
    "jobs": [{
        "type": "git",
        "name": "external",
        "clone_url": "https://github.com/InfraBox/cli.git",
        "commit": "master"
    }]
}

This example would now clone the infraboxcli repo and include it as workflow. For this to work the included repo must have an infrabox.json file in its root directory.

See the Docker Job Documentation for a detailed explanation about the options of a git job.