From b6a08a22180f0d8e54830ef1cc685f451d8b983b Mon Sep 17 00:00:00 2001 From: crgisch Date: Tue, 10 Sep 2024 14:18:18 -0300 Subject: [PATCH] fix: job deploy exemples --- tsuru/client/deploy.go | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/tsuru/client/deploy.go b/tsuru/client/deploy.go index cbfc21f1..51ec3ae1 100644 --- a/tsuru/client/deploy.go +++ b/tsuru/client/deploy.go @@ -607,33 +607,20 @@ func (c *JobDeploy) Info() *cmd.Info { return &cmd.Info{ Name: "job-deploy", Usage: "job deploy [--job ] [--image ] [--dockerfile ] [--message ]", - Desc: `Deploy the source code and/or configurations to the application on Tsuru. + Desc: `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 app's platform build process (just sending source code and/or configurations): - Uploading all files within the current directory - $ tsuru app deploy -a . - - Uploading all files within a specific directory - $ tsuru app deploy -a mysite/ - - Uploading specific files - $ tsuru app deploy -a ./myfile.jar ./Procfile - - Uploading specific files (ignoring their base directories) - $ tsuru app deploy -a --files-only ./my-code/main.go ./tsuru_stuff/Procfile - To deploy using a container image: - $ tsuru app deploy -a --image registry.example.com/my-company/app:v42 + $ tsuru job deploy -j --image registry.example.com/my-company/my-job:v42 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 app deploy -a --dockerfile . + $ tsuru job deploy -j --dockerfile . Sending a specific container file and specific directory as container build context: - $ tsuru app deploy -a --dockerfile ./Dockerfile.other ./other/ + $ tsuru job deploy -j --dockerfile ./Dockerfile.other ./other/ `, MinArgs: 0, }