Tsuru job deploy
tsuru job deploy¶
Deploy the source code and/or configurations to a Job on Tsuru.
Synopsis¶
Deploy the source code and/or configurations to a Job on Tsuru.
Files specified in the ".tsuruignore" file are skipped - similar to ".gitignore". It also honors ".dockerignore" file if deploying with container file (--dockerfile).
Examples:
To deploy using a container image:
$ tsuru job deploy -j
To deploy using container file ("docker build" mode):
Sending the the current directory as container build context - uses Dockerfile file as container image instructions:
$ tsuru job deploy -j
Sending a specific container file and specific directory as container build context:
$ tsuru job deploy -j <JOB> --dockerfile ./Dockerfile.other ./other/
tsuru job deploy [--job <job name>] [--image <container image name>] [--dockerfile <container image file>] [--message <message>] [flags]
Options¶
--dockerfile string Container file
-i, --image string The image to deploy in job
-j, --job string The name of the job.
-m, --message string A message describing this deploy
-h, --help help for deploy
Options inherited from parent commands¶
--target string Tsuru server endpoint
--verbosity int Verbosity level: 1 => print HTTP requests; 2 => print HTTP requests/responses
SEE ALSO¶
- tsuru job - Job is a program that runs on a schedule or is executed manually