concourse / github-release-resource

a resource for github releases
Apache License 2.0
57 stars 58 forks source link

Auto-unpack source tarball/zip #73

Closed aegershman closed 4 years ago

aegershman commented 6 years ago

I'm under the impression the Concourse s3 resource can unpack source tarballs on download. I have the same use case for download gh-release source code-- I would like to download the release source code & have it automatically unpacked in the same directory.

Currently I'm implementing the logic in a task, but it would save me quite a bit of code if the source code contents could be untarred/unzipped automatically.

      - task: unpack-tarball
        config:
          platform: linux
          image_resource:
            type: docker-image
            source: {repository: czero/cflinuxfs2}
          inputs: [name: tarball]
          outputs: [name: untarred]
          run:
            path: bash
            args: [-c, tar -xvf tarball/*.tar.gz -C untarred --strip-components=1]

Thanks for your time & consideration

techgaun commented 3 years ago

I know this is closed but this would be a great feature to have. I do not want to add another step to unpack tarball or zip if I can do on this very step. Can we consider adding this?