from the <target>
repository directory
git submodule add git@github.com:metaory/meta-deploy-cli.git deploy
bash build/install.sh
git add deploy .gitmodules config.json package.json
git commit -am 'added deploy-cli submodule'
git push origin
git submodule update --remote
with force
git submodule update --remote --init --recursive --force
git clone git@github.com:<organization_name>/<repository_name>.git --recursive
bash deploy/install.sh
Apart from all the local and app configs CLI will collects and store in config.json
you should configure any number of commands as part of your build, such aspre-app-build
, app-build
, post-app-build
, ...
APP_BUILD_SEQUENCE
can have as many Objects
, each key
is lablel for the sequence group and can be any String
each group can have as many Objects
each command String
in Array
of COMMANDS
default cwd
for command is .
root of <target_repository>
or provided relative path from root, like src/main
available config variables:
{ENV}
{APP_VERSION}
"APP_BUILD_SEQUENCE": {
"foo": [{
"NAME": "My OPT olo ONE",
"COMMANDS": ["ls", "echo {APP_VERSION}"]
},
{
"NAME": "My OPT olo 2",
"PATH": "deploy",
"COMMANDS": ["ls", "echo {ENV}"]
}
],
"my post sequence": [{
"NAME": "Zzz",
"COMMANDS": ["sleep 3"]
}],
"bar": [{
"NAME": "baz",
"PATH": "src/main",
"COMMANDS": ["ls"]
}]
}
windows users might have other requirement or configuration required