switch key format
parent
dac338b3bb
commit
135f2e10fe
|
@ -33,17 +33,12 @@ trigger-builder-nixpacks-builder-build() {
|
|||
for flag in $NIXPACKS_FLAGS ; do
|
||||
local value="$(fn-plugin-property-get "builder-nixpacks" "$APP" "$flag")"
|
||||
if [[ -n "$value" ]] ; then
|
||||
NIXPACKS_ARGS="${NIXPACKS_ARGS}${flag}='${value}' "
|
||||
NIXPACKS_ARGS="${NIXPACKS_ARGS}--${flag}=${value// /\\ } "
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ -n "$NIXPACKS_ARGS" ]] ; then
|
||||
dokku_info_log2_quiet "nixpacks build . --name $IMAGE --env $NIXPACKS_ARGS"
|
||||
nixpacks build . --name "$IMAGE" --env "$NIXPACKS_ARGS"
|
||||
else
|
||||
dokku_info_log2_quiet "nixpacks build . --name $IMAGE"
|
||||
nixpacks build . --name "$IMAGE"
|
||||
fi
|
||||
dokku_log_info1_quiet "nixpacks build . --name $IMAGE $NIXPACKS_ARGS"
|
||||
nixpacks build . --name "$IMAGE" $NIXPACKS_ARGS
|
||||
docker-image-labeler --label=dokku --label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=com.dokku.image-stage=build --label=com.dokku.builder-type=pack --label=com.dokku.app-name=$APP "$IMAGE"
|
||||
|
||||
plugn trigger post-build-nixpacks "$APP" "$SOURCECODE_WORK_DIR"
|
||||
|
|
|
@ -41,5 +41,5 @@ cmd-builder-nixpacks-report-single() {
|
|||
}
|
||||
|
||||
fn-builder-nixpacks-valid-keys() {
|
||||
echo "NIXPACKS_APT_PKGS NIXPACKS_BUILD_CACHE_DIRS NIXPACKS_BUILD_CMD NIXPACKS_INSTALL_CACHE_DIRS NIXPACKS_INSTALL_CMD NIXPACKS_LIBS NIXPACKS_NO_CACHE NIXPACKS_NO_MUSL NIXPACKS_PKGS NIXPACKS_START_CMD"
|
||||
echo "build-cmd cache-key env install-cmd libs pkgs start-cmd"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue