Use mirror instead to upload files, change build directory
This commit is contained in:
parent
b30eddd4e8
commit
67a915b2d9
@ -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:
|
||||
|
2
debian/debian-11.2-amd64.json
vendored
2
debian/debian-11.2-amd64.json
vendored
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user