Vagrant builder, does not create packag.box

I have two phase build process.
the first stage creates the package.box but second stage doesn’t.
no errors in the logs.

phase1

source "vagrant" "phase1" {
  communicator = "ssh"
  source_path = "gusztavvargadr/windows-10"
  box_version = "2202.0.2310"
  provider = "virtualbox"
  add_force = true
}

build {
  sources = ["source.vagrant.phase1"]

  post-processors {
    post-processor "shell-local" {
    inline = [
        "vagrant box add output-phase1/package.box --force --name local/windows-base --provider virtualbox"
      ]
    }
  }
}

phase2


source "vagrant" "dms" {
  communicator = "ssh"
  source_path = "local/windows-base"
  provider = "virtualbox"
  add_force = true
}

build {
  sources = ["source.vagrant.dms"]
}

output of the second phase

Debug mode enabled. Builds will not be parallelized.
vagrant.dms: output will be in this color.

==> vagrant.dms: Deleting previous output directory...
==> vagrant.dms: Pausing after run of step 'StepOutputDir'. Press enter to continue. 
==> vagrant.dms: Creating a Vagrantfile in the build directory...
==> vagrant.dms: Pausing after run of step 'StepCreateVagrantfile'. Press enter to continue. 
==> vagrant.dms: Adding box using vagrant box add ...
    vagrant.dms: (this can take some time if we need to download the box)
==> vagrant.dms: Pausing after run of step 'StepAddBox'. Press enter to continue. 
==> vagrant.dms: Calling Vagrant Up (this can take some time)...
==> vagrant.dms: Pausing after run of step 'StepUp'. Press enter to continue. 
==> vagrant.dms: Pausing after run of step 'StepSSHConfig'. Press enter to continue. 
==> vagrant.dms: Using SSH communicator to connect: 127.0.0.1
==> vagrant.dms: Waiting for SSH to become available...
==> vagrant.dms: Connected to SSH!
==> vagrant.dms: Pausing after run of step 'StepConnect'. Press enter to continue. 
==> vagrant.dms: Pausing after run of step 'StepProvision'. Press enter to continue. 
==> vagrant.dms: Packaging box...
==> vagrant.dms: Pausing after run of step 'StepPackage'. Press enter to continue. 
==> vagrant.dms: Pausing before cleanup of step 'StepPackage'. Press enter to continue. 
==> vagrant.dms: Pausing before cleanup of step 'StepProvision'. Press enter to continue. 
==> vagrant.dms: Pausing before cleanup of step 'StepConnect'. Press enter to continue. 
==> vagrant.dms: Pausing before cleanup of step 'StepSSHConfig'. Press enter to continue. 
==> vagrant.dms: Pausing before cleanup of step 'StepUp'. Press enter to continue. 
==> vagrant.dms: destroying Vagrant box...
==> vagrant.dms: Pausing before cleanup of step 'StepAddBox'. Press enter to continue. 
==> vagrant.dms: Pausing before cleanup of step 'StepCreateVagrantfile'. Press enter to continue. 
==> vagrant.dms: Pausing before cleanup of step 'StepOutputDir'. Press enter to continue. 
Build 'vagrant.dms' finished after 1 hour 19 minutes.

==> Wait completed after 1 hour 19 minutes

==> Builds finished. The artifacts of successful builds are:
--> vagrant.dms: Vagrant box 'package.box' for 'virtualbox' provider

in the output directory for phase2 project there is no package.box!