From 67a915b2d90a18376f4a9a58096d54431c4e4258 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 6 Mar 2022 18:52:24 -0500 Subject: [PATCH] Use mirror instead to upload files, change build directory --- .drone.yml | 4 ++-- debian/debian-11.2-amd64.json | 2 +- ubuntu/ubuntu-20.04-amd64.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8f1e00b..e0835a1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: diff --git a/debian/debian-11.2-amd64.json b/debian/debian-11.2-amd64.json index f5fa69e..085a4cc 100644 --- a/debian/debian-11.2-amd64.json +++ b/debian/debian-11.2-amd64.json @@ -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", diff --git a/ubuntu/ubuntu-20.04-amd64.json b/ubuntu/ubuntu-20.04-amd64.json index 1fca9ad..b19ef62 100644 --- a/ubuntu/ubuntu-20.04-amd64.json +++ b/ubuntu/ubuntu-20.04-amd64.json @@ -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",