mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
artifact docs: modified the leading example and removed a treacherous (but potentially correct) example
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user