Skip to content

Support for network agnostic builds #361

@muzammil786

Description

@muzammil786

Hi - Is there a way that the same yml can be used on different networks where the git repo links are different?
We have two networks where the git repos are mirrored but their links are different. So I was wondering if we could use environment variables in sources like:

location: repos

sources:
        - repo: ssh://git@"${GIT_BASE}"/project/myrepo1.git
          name: myrepo1
          rev: "${PROJ_BRANCH:-develop}"

        - repo: ssh://git@"${GIT_BASE}"/project/myrepo2.git
          name: myrepo2
          rev: "${PROJ_BRANCH:-develop}"

Where GIT_BASE and PROJ_BRANCH can be set before running gitman install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions