Add an explicit cache restore
This commit is contained in:
@@ -40,13 +40,7 @@ stages:
|
||||
${EXCEPT}
|
||||
sources
|
||||
before_script:
|
||||
- packer init sources
|
||||
- echo $COMMAND
|
||||
- mc alias set storage "http://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
|
||||
- mc get "storage/isos/$file" "$file"
|
||||
- nix run ".#cache-restore"
|
||||
script:
|
||||
- ls -l cache/
|
||||
- echo $COMMAND > build.sh
|
||||
|
||||
Reference in New Issue
Block a user