Close
    logoCloudomation Docs

    Using Flow Scripts from Git

    Flow scripts and settings can be loaded from Git into Cloudomation and synchronized between Cloudomation and the Git repository. This integration can be easily set up using a “GIT configuration”.

    All python scripts following a user-defined pattern will be interpreted as flow scripts and all e.g. .yaml files are interpreted as settings. More information will follow below.

    Configurations can be found and setup on the left pane under: Admin -> Git configuration For a new configuration click “New” in the main pane.

    Required fields are:

    • “Remote URL”
    • “Branch name”
    • “Username”
    • either “Password” or “SSH private key”
    • “Path mapping”

    Path mapping uses a syntax as in the following example:

    flow:
    - '**/*.py'
    setting:
    - '**/*.yaml'
    - '**/*.yml'

    i.e. all python scripts are loaded as flows and all .yaml and .yml files are used as settings.

    Flow Scripts from the Cloudomation Library

    Cloudomation will search the public flow script library for any flow script that is executed which doesn’t exist in the workspace account from which it is executed. For example, if you call c.flow(‘Create User’) from a flow script and you do not have a Create User flow script in your account, Cloudomation will automatically fetch the Create User flow script from the public flow script library and execute it. The flow script will only be fetched and executed dynamically, and will not be stored in your account.

    Manual Configuration and Synchronisation Using a Task

    Instead of using the “GIT configuration” to setup synchronization of flow scripts between Git and Cloudomation, you can achieve the same defining a task with the GIT task type. There is a git sync flow script available in the public flow script library that allows you to set up synchronisation between your Git repository and Cloudomation.

    Knowledge Base — Previous
    User Roles
    Next — Knowledge Base
    Using Python Functionality in Flow Scripts