Correct the writing of files
This commit is contained in:
@@ -42,7 +42,7 @@ stages:
|
||||
before_script:
|
||||
- packer init sources
|
||||
- echo $COMMAND
|
||||
- mc alias add storage "localhost:9000" root "$MINIO_SECRET"
|
||||
- mc alias set storage "localhost:9000" root "$MINIO_SECRET"
|
||||
- mc ls storage/isos/cache
|
||||
- file=$(echo var.iso.url | packer console -var-file="${distro}" -config-type=hcl2 sources/)
|
||||
- mkdir cache
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ downloads:
|
||||
script:
|
||||
- packer init sources
|
||||
- bash cache.sh
|
||||
- mc alias add storage "localhost:9000" root "$MINIO_SECRET"
|
||||
- mc alias set storage "localhost:9000" root "$MINIO_SECRET"
|
||||
- |
|
||||
for f in cache/*; do
|
||||
mc put "$f" "storage/isos/$f"
|
||||
|
||||
Reference in New Issue
Block a user