Skip to main content
EXAMPLE

Artifacts

Publish the included `bundle/` directory as a [versioned artifact](https://atmos.tools/artifacts), list it in a local repository, and restore its files. This example runs entirely on your filesystem.

Automation
cloudposse / atmos

Try it out

Copy the example into a new directory and make it your own:

atmos init examples/artifacts
cd artifacts

Follow the README for prerequisites and next steps.

See it in action

RECORDED DEMO
artifacts
 
Recorded from this example
Real commands. Real output.
README.md1.1 KB
View on GitHub

Artifacts

Publish the included bundle/ directory as a versioned artifact, list it in a local repository, and restore its files. This example runs entirely on your filesystem.

From the repository root, run these commands with a version of Atmos that includes atmos artifacts:

cd examples/artifacts
atmos artifacts publish ./bundle --repository=local --name=builds/app --version=1.0.0 --readme=README.md
atmos artifacts list --repository=local
atmos artifacts pull builds/app:1.0.0 --repository=local --output=./restored
diff -r bundle restored

The list includes builds/app at version 1.0.0. In a terminal, pull displays the published README after the operation summary. An empty diff confirms the restored files match the original bundle.