artifact docs: modified the leading example and removed a treacherous (but potentially correct) example

This commit is contained in:
Chris Baker
2019-02-28 21:48:01 +00:00
parent 737ea19b90
commit 2d25f24d99

View File

@@ -30,7 +30,7 @@ job "docs" {
task "server" {
artifact {
source = "https://example.com/file.tar.gz"
destination = "/tmp/directory"
destination = "local/some-directory"
options {
checksum = "md5:df6a4178aec9fbdc1d6d7e3634d1bc33"
}
@@ -80,18 +80,6 @@ artifact {
}
```
### Download with Custom Destination
This example downloads the artifact from the provided URL and places it at
`/tmp/example/file.txt`, as specified by the optional `destination` parameter.
```hcl
artifact {
source = "https://example.com/file.txt"
destination = "/tmp/example"
}
```
### Download using git
This example downloads the artifact from the provided GitHub URL and places it at