diff --git a/.drone.yml b/.drone.yml index 2f5be9a..16198c8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -56,7 +56,7 @@ steps: - name: output path: /output - name: scratch - path: /drone/src + path: /scratch - name: Trigger downstream builds image: plugins/downstream settings: diff --git a/packer/windowsserver2019.json b/packer/windowsserver2019.json index 7d0ce8c..c2f3cf2 100644 --- a/packer/windowsserver2019.json +++ b/packer/windowsserver2019.json @@ -64,7 +64,8 @@ "shutdown_timeout": "1h", "export": { - "images": false + "images": false, + "output_directory": "/scratch/srv2019-t" } }, { @@ -131,7 +132,8 @@ "shutdown_timeout": "1h", "export": { - "images": false + "images": false, + "output_directory": "/scratch/srv2019-v" } } ], @@ -216,12 +218,12 @@ "type": "shell-local", "inline": [ "pwsh -command \"& scripts/Update-OvfConfiguration.ps1 \\", - " -OVFFile './output-srv2019-v/{{user `vm_guestos`}}-{{user `vm_name`}}.ovf' \\", + " -OVFFile '/scratch/output-srv2019-v/{{user `vm_guestos`}}-{{user `vm_name`}}.ovf' \\", " -Parameter @{'appliance.name'='{{user `vm_guestos`}}';'appliance.version'='{{user `vm_name`}}'}\"", "pwsh -file scripts/Update-Manifest.ps1 \\", - " -ManifestFileName './output-srv2019-v/{{user `vm_guestos`}}-{{user `vm_name`}}.mf'", + " -ManifestFileName '/scratch/output-srv2019-v/{{user `vm_guestos`}}-{{user `vm_name`}}.mf'", "ovftool --acceptAllEulas --allowExtraConfig --overwrite \\", - " './output-srv2019-v/{{user `vm_guestos`}}-{{user `vm_name`}}.ovf' \\", + " '/scratch/output-srv2019-v/{{user `vm_guestos`}}-{{user `vm_name`}}.ovf' \\", " /output/Windows-Server-2019-LTSC.ova" ] }