This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 39
import_git_files_to_packages
Marcel Kloubert edited this page Jan 10, 2018
·
7 revisions
Home >> Packages >> Import git files to packages
Imports files from git commits into a packages.
The following example will (only) handle the changes between the commits 9abcdef
(youngest) and fedcba9
(oldest) of the branch v1.0.0
:
{
"deploy.reloaded": {
"packages": [
{
"name": "Version 1.0.0",
"git": {
"branch": "v1.0.0",
"from": "9abcdef",
"to": "fedcba9"
},
"targets": [ "My ZIP target" ]
}
],
"targets": [
{
"name": "My ZIP target",
"type": "zip",
"dir": "E:/Projects/My Project/versions"
}
]
}
}
- if a deploy or pull operation is started, only the files that were added or modified in git will be handled
- if a delete operation is started, only the files that were removed in git will be handled
A string has the format: OPTION_1[:OPTION_2[:OPTION_3]]
:
You can define a branch or a hash, with the commit from where to import the files from:
{
"deploy.reloaded": {
"packages": [
{
"git": "myBranch",
// ...
},
{
"git": "9abcdef",
// ...
}
]
}
}
You can ...
- ... define a branch and a hash, with the commit from where to import the files from
- ... or define a two hashes, with the commits from where to import the files from (
YOUNGEST_HASH:OLDEST_HASH
)
{
"deploy.reloaded": {
"packages": [
{
"git": "myBranch:9abcdef",
// ...
},
{
"git": "9abcdef:fedcba9",
// ...
}
]
}
}
{
"deploy.reloaded": {
"packages": [
{
"git": "myBranch:9abcdef:fedcba9",
// ...
}
]
}
}
{
"deploy.reloaded": {
"packages": [
{
"git": {
"branch": "v1.0.0",
"from": "9abcdef",
"to": "fedcba9"
},
// ...
}
]
}
}
Name | Description |
---|---|
branch |
The custom branch. Default: master
|
exclude |
git files to exclude (s. node-glob). If not defined, the exclude setting from underlying package will be used. |
files |
git files to include (s. node-glob). If not defined, the files setting from underlying package will be used. |
from |
The hash from where to start (youngest commit). Default: latest commit |
gitFilesOnly |
Only use files from git or not. Default: (true)
|
to |
The hash where to stop (oldest commit). Default: Commit of from
|