docs: Implement FAQ page, default values in Cue + fix sidebar and titles

Move faq pages from guide to specific FAQ page, shown as per tailscale format.
Custom in-house logic implemented because Docusaurus doesn't manage it

Signed-off-by: guillaume <guillaume.derouville@gmail.com>
This commit is contained in:
guillaume
2022-04-12 18:41:07 +02:00
parent 15ccee2eaa
commit 204d067bcc
6 changed files with 54 additions and 8 deletions

View File

@@ -0,0 +1,24 @@
---
slug: /1231/always-execute
displayed_sidebar: europa
---
# Always executing an action
Dagger implemented a way to tell Buildkit not to rely on cache for a specific action.
The `docker.#Run` and `core.#Exec` definitions have an `always` field:
```cue
// If set to true, the cache will never be triggered for that specific action.
always: bool | *false
```
Any package composed on top of it (`bash.#Run` for example) also exposes this field as it will inherit it from `docker.#Run`:
```cue
test: bash.#Run & {
always: true
...
}
```