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
@@ -942,6 +942,30 @@ merge_dedupe_list() {
|
||||
echo "$merged_list"
|
||||
}
|
||||
|
||||
fn-build-capture-app-name() {
|
||||
declare desc="outputs the app name from the arguments of a build-capturing command, skipping any flags"
|
||||
shift 1
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case "$1" in
|
||||
--all)
|
||||
return 0
|
||||
;;
|
||||
--parallel)
|
||||
shift 1
|
||||
[[ $# -gt 0 ]] && shift 1
|
||||
;;
|
||||
-*)
|
||||
shift 1
|
||||
;;
|
||||
*)
|
||||
echo "$1"
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
dokku_setup_build_capture() {
|
||||
declare desc="generate a build-id, write a record, and redirect output to log + journald"
|
||||
declare APP="$1" SOURCE="${2:-unknown}"
|
||||
|
||||
Reference in new issue
Block a user