Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions: download: Implement a local cache #412

Open
arky opened this issue Jul 4, 2023 · 0 comments
Open

actions: download: Implement a local cache #412

arky opened this issue Jul 4, 2023 · 0 comments

Comments

@arky
Copy link

arky commented Jul 4, 2023

It would be great to have ability to locally cache downloads. So you are constantly downloading the same file everytime you run a build.

https://github.com/go-debos/debos-recipes/blob/9a25b4be6c9136f4a27e542f39ab7e419fc852c9/rpi3/debimage-rpi3.yaml#L8

{{- $firmware_version := or .firmware_version "1.20180919" -}}
actions:
  # Download all needed proprietary stuff first
  - action: download
    url: https://github.com/raspberrypi/firmware/archive/{{ $firmware_version }}.tar.gz
    unpack: true     # Unpack downloaded file
    name: firmware # name for usage directory with unpacked content in other actions
@obbardc obbardc changed the title Local Cache for Download Actions actions: download: Implement a local cache Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant