Workspace
The workspace
block describes cache related information.
ℹ️
To leverage caching capabilities and enable fast builds on CI, you need to create an account on
Insights. There you can create a space which can be used with Terrabuild.
Once you have created an account, an organization and a space on Insights, create a token to allow Terrabuild to use the specified space.
For this, issue the following command for your space:
terrabuild login --space <space-slug> --token <token>
And voilà! Your builds will be faster!
⚠️
If you are connected to a space and would like to build without cache support, you can use the
--local-only
argument to ignore it.Example Usage
workspace {
space = "magnusopera/terrabuild"
ignores = [ "src/project-1" ]
}
Argument Reference
The following arguments are supported:
space
- (Optional) Slug of space.ignores
- (Options) List of projects to ignore (globbings). Globbings are relative to workspace folder.
Last updated on