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
guillaume 49de5d022c docs: docs: guide - default values cue
Add default values cue doc page + implement all maintainers suggestions

Signed-off-by: guillaume <guillaume.derouville@gmail.com>
2022-04-14 16:13:15 +02:00

597 B

slug displayed_sidebar
/1231/always-execute 0.2

How to always execute an action ?

Dagger implemented a way invalidate cache for a specific action.

The docker.#Run and core.#Exec definitions have an always field:

// 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:

test: bash.#Run & {
    always: true
    ...
}

:::warning Any dependent actions will also be retriggered :::