This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/docs/faq/1231-always-execute.md

25 lines
549 B
Markdown
Raw Normal View History

---
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
...
}
```