Simply downloads and extracts an archive to the destination.
NOTE: This resource is only intended for use in fly execute
(it's how
your inputs get uploaded). It won't work in a pipeline because check
never
yields any valid versions. This is because a download URL is not enough to
continuously integrate with something, since the endpoint isn't versioned.
You probably want the S3 resource
or the GitHub Release
resource instead.
uri
: Required. The location of the file to download.ca_cert
: Optional. The contents of server CA cert.skip_ssl_validation
: Optional. Skip SSL validation.
As this resource is mainly used for one-off downloads (with Fly), there aren't really any versioning semantics.
Fetches a .tar.gz
file from the URL, and extracts it to the destination as
it's downloading.
None.
Currently there is no output functionality. In principle, this could be
configured with a directory to compress and upload to the uri
, however
this is not currently implemented.
None.
- golang is required - version 1.9.x is tested; earlier versions may also work.
- docker is required - version 17.06.x is tested; earlier versions may also work.
- godep is used for dependency management of the golang packages.
The tests have been embedded with the Dockerfile
; ensuring that the testing
environment is consistent across any docker
enabled platform. When the docker
image builds, the test are run inside the docker container, on failure they
will stop the build.
Run the tests with the following command:
docker build -t archive-resource .
Please make all pull requests to the master
branch and ensure tests pass
locally.