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

+4
View File
@@ -279,6 +279,10 @@ trigger-builder-dockerfile-builder-build() {
esac
done
if [[ "$DOKKU_BUILD_NO_CACHE" == "true" ]] && ! fn-in-array "--no-cache" "${DOCKERFILE_ARGS[@]}"; then
DOCKERFILE_ARGS+=("--no-cache")
fi
eval "$(config_export app "$APP")"
local DOCKER_CONFIG
DOCKER_CONFIG="$(fn-registry-docker-config-dir "$APP")"