Dear all,
as apko still does not allow adding files, I tried out the suggestion to package the files and add the package to the image.
A prototype is here: https://github.com/kastl-ars/apko-pluto-with-files-via-apk
Unfortunately it looks like downloading a plain file (i.e. not an archive) is not working.
pipeline:
- uses: fetch
with:
uri: https://raw.githubusercontent.com/kastl-ars/apko-pluto-with-files-via-apk/refs/heads/main/files/hello-world.txt
expected-sha256: 03ba204e50d126e4674c005e04d82e84c21366780af1f43bd54a37816b6ab340
extract: false
directory: /etc/
The package builds, but the image does not contain any traces of the file.
I tar'ed up the file and fetched the tar.gz file, but also, no trace of the file:
pipeline:
- uses: fetch
with:
uri: https://raw.githubusercontent.com/kastl-ars/apko-pluto-with-files-via-apk/refs/heads/main/files/hello-world.tar.gz
expected-sha256: dfd15f6cf344fe0db3b9a8b50266ea222f997cb8ffaa58e39f309d7c531088cc
extract: true
directory: /etc/
Unfortunately, the fetch pipeline seems to be the only pipeline that could achieve adding plain files. Or did I miss a fitting candidate in the list of pipelines?
How would I get this working? Or am I making an error in another part of the process?
Kind Regards,
Johannes
Dear all,
as apko still does not allow adding files, I tried out the suggestion to package the files and add the package to the image.
A prototype is here: https://github.com/kastl-ars/apko-pluto-with-files-via-apk
Unfortunately it looks like downloading a plain file (i.e. not an archive) is not working.
The package builds, but the image does not contain any traces of the file.
I tar'ed up the file and fetched the tar.gz file, but also, no trace of the file:
Unfortunately, the
fetchpipeline seems to be the only pipeline that could achieve adding plain files. Or did I miss a fitting candidate in the list of pipelines?How would I get this working? Or am I making an error in another part of the process?
Kind Regards,
Johannes