Add local source publication
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
|
||||
## Config file location
|
||||
|
||||
`distributor run --config <path> --dry-run` loads the YAML config at the path provided by `--config`.
|
||||
`distributor run --config <path>` loads the YAML config at the path provided by `--config`.
|
||||
|
||||
If `--config` is omitted during dry-run, the built-in default path is:
|
||||
If `--config` is omitted during run, the built-in default path is:
|
||||
|
||||
```text
|
||||
/usr/local/etc/distributor/config.yml
|
||||
```
|
||||
|
||||
The current implementation loads and validates configuration only. Bundle discovery and publication are not implemented yet.
|
||||
The current implementation supports local-to-local source-file publication. Remote backends and HTML publication are not implemented yet.
|
||||
|
||||
## Minimal config
|
||||
|
||||
@@ -40,18 +40,16 @@ pipelines:
|
||||
on_digest_mismatch: fail
|
||||
destinations:
|
||||
- id: archive
|
||||
backend: s3
|
||||
endpoint: https://s3.example.com
|
||||
bucket: reports
|
||||
prefix: archive
|
||||
region: us-east-1
|
||||
force_path_style: true
|
||||
credentials:
|
||||
access_key_id_env: DISTRIBUTOR_S3_ACCESS_KEY_ID
|
||||
secret_access_key_env: DISTRIBUTOR_S3_SECRET_ACCESS_KEY
|
||||
backend: local
|
||||
path: /srv/reports/archive
|
||||
publish:
|
||||
source: true
|
||||
html: false
|
||||
transfer:
|
||||
on_destination_same: skip
|
||||
on_destination_older: replace
|
||||
on_destination_newer: skip
|
||||
on_conflict: fail
|
||||
```
|
||||
|
||||
## Reference
|
||||
|
||||
Reference in New Issue
Block a user