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