Use mirror instead to upload files, change build directory
This commit is contained in:
parent
b30eddd4e8
commit
67a915b2d9
|
@ -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:
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue