Skip to content

Commit

Permalink
improvement: allow to deploy all actions with --skip-dependencies
Browse files Browse the repository at this point in the history
* improvement: allow to deploy all actions with --skip-dependencies

* fix: add log output to exec deploy
  • Loading branch information
Orzelius authored Jul 6, 2023
1 parent 7af9c0b commit f3bc22c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions core/src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export const deployOpts = {
}),
"skip-dependencies": new BooleanParameter({
help: deline`
Deploy the specified actions, but don't build, deploy or run any dependencies. This option can only be used when a list of Deploy names is passed as CLI arguments.
This can be useful e.g. when your stack has already been deployed, and you want to run specific Deploys in sync mode without building, deploying or running dependencies that may have changed since you last deployed.
Skip deploy, test and run dependencies. Build dependencies and runtime output reference dependencies are not skipped.
This can be useful e.g. when your stack has already been deployed, and you want to run specific Deploys in sync mode without deploying or running dependencies that may have changed since you last deployed.
`,
aliases: ["nodeps"],
}),
Expand Down Expand Up @@ -218,14 +218,6 @@ export class DeployCommand extends Command<Args, Opts> {
}

const skipRuntimeDependencies = opts["skip-dependencies"]
if (skipRuntimeDependencies && (!args.names || args.names.length === 0)) {
const errMsg = deline`
No names were provided as CLI arguments, but the --skip-dependencies option was used. Please provide a
list of names when using the --skip-dependencies option.
`
log.error({ msg: errMsg })
return { result: { aborted: true, success: false, ...emptyActionResults } }
}

const force = opts.force
const startSync = !!opts.sync
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ the command stays running until explicitly aborted.

This always takes the precedence over sync mode if there are any conflicts, i.e. if the same Deploys are matched with both &#x60;--sync&#x60; and &#x60;--local&#x60; options.
| `--skip` | | array:string | The name(s) of Deploys you&#x27;d like to skip.
| `--skip-dependencies` | | boolean | Deploy the specified actions, but don&#x27;t build, deploy or run any dependencies. This option can only be used when a list of Deploy names is passed as CLI arguments. This can be useful e.g. when your stack has already been deployed, and you want to run specific Deploys in sync mode without building, deploying or running dependencies that may have changed since you last deployed.
| `--skip-dependencies` | | boolean | Skip deploy, test and run dependencies. Build dependencies and runtime output reference dependencies are not skipped. This can be useful e.g. when your stack has already been deployed, and you want to run specific Deploys in sync mode without deploying or running dependencies that may have changed since you last deployed.
| `--disable-port-forwards` | | boolean | Disable automatic port forwarding when running persistently. Note that you can also set GARDEN_DISABLE_PORT_FORWARDS&#x3D;true in your environment.
| `--forward` | | boolean | Create port forwards and leave process running after deploying. This is implied if any of --sync / --local or --logs are set.
| `--logs` | | boolean | Stream logs from the requested Deploy(s) (or services if using modules) during deployment, and leave the log streaming process running after deploying. Note: This option implies the --forward option.
Expand Down

0 comments on commit f3bc22c

Please sign in to comment.