diff --git a/entrypoint.sh b/entrypoint.sh index 1e74090..97f172a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -36,7 +36,7 @@ if [[ "${PLUGIN_PLATFORM:-}" == "true" ]]; then fi # https://github.com/moby/buildkit/blob/master/README.md#output OUTPUT="" -if [[ "${PLUGIN_NAME:-}" == "true" ]]; then +if [[ -n "${PLUGIN_NAME:-}" ]]; then OUTPUT="$OUTPUT --output type=image,\"name=$PLUGIN_NAME\",push=${PLUGIN_PUSH:-true},oci-mediatypes=true,oci-artifact=true,compression=estargz" OUTPUT="$OUTPUT,oci-mediatypes=true,oci-artifact=true,compression=estargz,compression-level=9" OUTPUT="$OUTPUT,rewrite-timestamp=true"