Use mirror instead to upload files, change build directory
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is failing

This commit is contained in:
Tyler 2022-03-06 18:52:24 -05:00
parent b30eddd4e8
commit 67a915b2d9
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ steps:
commands:
- packer build ubuntu/ubuntu-20.04-amd64.json
- wget -O mc https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc
- ./mc cp builds/*.img.gz STORAGE/$MC_BUCKET
- ./mc mirror builds/ STORAGE/$MC_BUCKET/ubuntu
- rm -f mc
environment:
MC_HOST_STORAGE:
@ -32,7 +32,7 @@ steps:
commands:
- packer build debian/debian-11.2-amd64.json
- wget -O mc https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc
- ./mc cp builds/*.img.gz STORAGE/$MC_BUCKET
- ./mc mirror builds/ STORAGE/$MC_BUCKET/debian
- rm -f mc
environment:
MC_HOST_STORAGE:

View File

@ -69,7 +69,7 @@
],
"variables": {
"box_basename": "debian-11.2",
"build_directory": "../../builds",
"build_directory": "builds",
"build_timestamp": "{{isotime \"20060102150405\"}}",
"cpus": "2",
"disk_size": "65536",

View File

@ -67,7 +67,7 @@
],
"variables": {
"box_basename": "ubuntu-20.04",
"build_directory": "../builds",
"build_directory": "builds",
"build_timestamp": "{{isotime \"20060102150405\"}}",
"cpus": "2",
"disk_size": "65536",