otto/stdlib/archive/Cargo.toml

17 lines
467 B
TOML
Raw Normal View History

[package]
name = "archive-step"
version = "0.1.0"
authors = ["R. Tyler Croy <rtyler@brokenco.de>"]
edition = "2018"
[dependencies]
async-std = { version = "1", features = ["attributes"] }
2021-03-04 06:01:06 +00:00
flate2 = "1"
glob = "0.3"
otto-agent = { path = "../../crates/agent" }
2021-03-04 06:01:06 +00:00
serde = {version = "1", features = ["derive"]}
👏 Implement artifact uploading from the archive step 👏 Running the object store with: ./scripts/shoreman ❯ tree tmp/objects tmp/objects └── 2265b5d0-1f70-46de-bf50-f1050e9fac9a └── hello.log 1 directory, 1 file The full pipeline yml that was passed to the agent below. But in essence this demonstrates the approach for the agent to pass endpoints to the steps for their uses --- uuid: '2265b5d0-1f70-46de-bf50-f1050e9fac9a' contexts: - name: 'Prep' uuid: '3ce1f6fb-79ca-4564-a47e-98265f53ef7f' environment: CLOUD: 'yes' - name: 'Build' uuid: '5e9d4943-33e5-4945-8a97-a11421cb4b11' steps: - symbol: sh uuid: '5599cffb-f23a-4e0f-a0b9-f74654641b2b' context: '3ce1f6fb-79ca-4564-a47e-98265f53ef7f' parameters: script: 'ls -lah | tail -n 5' # - symbol: error # uuid: '3652dfe3-a07c-4bd7-b8e5-303100a3873c' # context: '3ce1f6fb-79ca-4564-a47e-98265f53ef7f' # parameters: # message: 'Failing out early' - symbol: sh uuid: '2265b5d0-1f70-46de-bf50-f1050e9fac9a' context: '5e9d4943-33e5-4945-8a97-a11421cb4b11' parameters: script: 'echo "Hello world from a script"' - symbol: dir uuid: '022c09ef-15f2-456a-a93a-92e584c1a1f4' context: 'a4cdad98-caf0-4705-ae1f-7986f8a1adf3' parameters: directory: 'stdlib' block: - symbol: sh uuid: '81e8309e-e615-49d4-946c-22527ebce8e1' context: 'a4cdad98-caf0-4705-ae1f-7986f8a1adf3' parameters: script: 'pwd && ls -lah' - symbol: echo uuid: '7f7ec29b-ad62-4fba-9c5f-db7a49a2d658' context: 'a4cdad98-caf0-4705-ae1f-7986f8a1adf3' parameters: message: 'Hello from a block-scoped step!' - symbol: sh uuid: '2265b5d0-1f70-46de-bf50-f1050e9fac9a' context: '5e9d4943-33e5-4945-8a97-a11421cb4b11' parameters: script: 'echo "hello" > hello.log' - symbol: archive context: '5e9d4943-33e5-4945-8a97-a11421cb4b11' uuid: 'd479e450-9ada-4127-84ca-e0576d0c0c98' parameters: artifacts: 'hello.log'
2020-11-01 23:23:56 +00:00
# Not using the curl-client default feature to ensure that builds won't require
# libcurl for now
2021-03-04 06:01:06 +00:00
surf = { version = "2", features = ["h1-client"]}
tar = "0.4"