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:
27 files changed
+316
-9
No files matched your search
@@ -112,7 +112,7 @@ trigger-builder-railpack-builder-build() {
|
||||
RAILPACK_ARGS+=("--start-cmd" "${1#--start-cmd=}")
|
||||
shift 1
|
||||
;;
|
||||
---show-plan | --error-missing-start)
|
||||
---show-plan | --error-missing-start | --no-cache)
|
||||
RAILPACK_ARGS+=("$1")
|
||||
shift 1
|
||||
;;
|
||||
@@ -126,6 +126,10 @@ trigger-builder-railpack-builder-build() {
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ "$DOKKU_BUILD_NO_CACHE" == "true" ]] && ! fn-in-array "--no-cache" "${RAILPACK_ARGS[@]}"; then
|
||||
RAILPACK_ARGS+=("--no-cache")
|
||||
fi
|
||||
|
||||
eval "$(config_export app "$APP" --merged)"
|
||||
|
||||
local DOCKER_CONFIG
|
||||
|
||||
Reference in new issue
Block a user