Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

27 Commits

Folders and files

Repository files navigation



Update git submodules

Plugin to update git submodules of an already cloned repo.

Dockerhub repo: https://hub.docker.com/r/codefresh/cfstep-gitsubmodules/tags

Options

ENVIRONMENT VARIABLE DEFAULT TYPE REQUIRED DESCRIPTION
GITHUB_TOKEN null string Yes GitHub Personal Token
CF_SUBMODULE_SYNC null boolean No If set to 'true', the step will perform 'git submodule sync' command
CF_SUBMODULE_UPDATE_RECURSIVE null boolean No If set to 'true', the step will perform 'git submodule update --init' command with '--recursive' option

Usage Example:

This example updates submodule of a cloned repo.

The step assumes that the working directory is the cloned repo (which is the default working directory for any free style step)

version: '1.0'
steps:
  updateSubmodules:
    image: codefreshplugins/cfstep-gitsubmodules
    environment:
      - GITHUB_TOKEN=<github_token>
      - CF_SUBMODULE_SYNC=<boolean to determine if modules should be synced>
      - CF_SUBMODULE_UPDATE_RECURSIVE=<boolean to determine if modules should be recursively updated>

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages