Skip to content

Add --no-cache flag to deploy command#116

Open
emanuelefaja wants to merge 1 commit intoletsdiscodev:mainfrom
emanuelefaja:feature/no-cache-deploy
Open

Add --no-cache flag to deploy command#116
emanuelefaja wants to merge 1 commit intoletsdiscodev:mainfrom
emanuelefaja:feature/no-cache-deploy

Conversation

@emanuelefaja
Copy link

Summary

  • Adds --no-cache boolean flag to the deploy command
  • Sends noCache: true in the POST request body to the daemon API when set

Usage

disco deploy --project mysite --no-cache

Companion PR

Daemon side: letsdiscodev/disco-daemon#93

Files changed

File Change
src/commands/deploy.ts Add --no-cache flag, noCache to request interface and body

Test plan

  • disco deploy --project <name> — works as before (no noCache in body)
  • disco deploy --project <name> --no-cache — sends noCache: true in request body
  • disco deploy --help — shows --no-cache flag in help output

Passes `noCache: true` in the deployment request body when the user
specifies `--no-cache`, allowing Docker builds without cache on the
daemon side.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant