Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

target_batch

Marcel Kloubert edited this page Dec 19, 2016 · 11 revisions

Home >> Targets >> batch

Batch

Deploys to one or more other target.

{
    "deploy": {
        "packages": [
            {
                "name": "My aweseome package",
                "exclude": [
                    ".deploy/**",
                    ".vscode/**"
                ]
            }
        ],

        "targets": [
            {
                "type": "batch",
                "name": "My batch",
                "description": "Deploys to 'Online' and 'Backup' in one operation",
                "targets": ["Online", "Backup"]
            },

            {
                "name": "Online",
                "type": "sftp",
                "description": "A folder on a SFTP server",

                "host": "example.com",
                "user": "tester", "password": "P@assword123!"
            },
            {
                "name": "Backup",
                "type": "local",
                "description": "Local path of 'backup' files",

                "dir": "/deploy_backup_path",
                "empty": true
            }
        ]
    }
}
Name Description
targets A list of one or more names of other targets to deploy to.
Clone this wiki locally