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

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: commands:
- packer build ubuntu/ubuntu-20.04-amd64.json - packer build ubuntu/ubuntu-20.04-amd64.json
- wget -O mc https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc - 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 - rm -f mc
environment: environment:
MC_HOST_STORAGE: MC_HOST_STORAGE:
@ -32,7 +32,7 @@ steps:
commands: commands:
- packer build debian/debian-11.2-amd64.json - packer build debian/debian-11.2-amd64.json
- wget -O mc https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc - 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 - rm -f mc
environment: environment:
MC_HOST_STORAGE: MC_HOST_STORAGE:

View File

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

View File

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