Move temporary files to separate volume scratch
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Danny Bessems 2021-02-13 10:46:43 +01:00
parent af8249d1a7
commit b09801282f
2 changed files with 8 additions and 6 deletions

View File

@ -56,7 +56,7 @@ steps:
- name: output - name: output
path: /output path: /output
- name: scratch - name: scratch
path: /drone/src path: /scratch
- name: Trigger downstream builds - name: Trigger downstream builds
image: plugins/downstream image: plugins/downstream
settings: settings:

View File

@ -64,7 +64,8 @@
"shutdown_timeout": "1h", "shutdown_timeout": "1h",
"export": { "export": {
"images": false "images": false,
"output_directory": "/scratch/srv2019-t"
} }
}, },
{ {
@ -131,7 +132,8 @@
"shutdown_timeout": "1h", "shutdown_timeout": "1h",
"export": { "export": {
"images": false "images": false,
"output_directory": "/scratch/srv2019-v"
} }
} }
], ],
@ -216,12 +218,12 @@
"type": "shell-local", "type": "shell-local",
"inline": [ "inline": [
"pwsh -command \"& scripts/Update-OvfConfiguration.ps1 \\", "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`}}'}\"", " -Parameter @{'appliance.name'='{{user `vm_guestos`}}';'appliance.version'='{{user `vm_name`}}'}\"",
"pwsh -file scripts/Update-Manifest.ps1 \\", "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 \\", "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" " /output/Windows-Server-2019-LTSC.ova"
] ]
} }