feat: add --no-cache flag to ps:rebuild

The `ps:rebuild` command now accepts `--no-cache` to perform a single uncached build regardless of builder, without persisting any setting for later deploys. The railpack builder now also honors `--no-cache` when set via `docker-options`, and build records are now correctly attributed when flags precede the app name.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-10-29 14:25:51 -04:00
1 parent 6e9ae25925
commit f3b21babcc
27 files changed
+316 -9

No files matched your search

+24
View File
@@ -326,6 +326,30 @@ teardown() {
assert_success
}
@test "(builder-pack) ps:rebuild --no-cache" {
run /bin/bash -c "dokku builder:set $TEST_APP selected pack"
echo "output: $output"
echo "status: $status"
assert_success
run deploy_app python dokku@$DOKKU_DOMAIN:$TEST_APP add_requirements_txt_cnb
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku ps:rebuild $TEST_APP"
echo "output: $output"
echo "status: $status"
assert_success
assert_output_contains "Skipping restore due to clearing cache" 0
run /bin/bash -c "dokku ps:rebuild --no-cache $TEST_APP"
echo "output: $output"
echo "status: $status"
assert_success
assert_output_contains "Skipping restore due to clearing cache"
}
cron_run_wrapper() {
local APP="$1"
local APP_REPO_DIR="$2"