diff --git a/docs/resources/pipeline.md b/docs/resources/pipeline.md index c58c318c..c431517d 100644 --- a/docs/resources/pipeline.md +++ b/docs/resources/pipeline.md @@ -150,8 +150,8 @@ resource "codefresh_pipeline" "test" { `runtime_environment` supports the following: - `name` - (Required) A name of runtime. -- `cpu` - (Optional) A required amount of CPU. -- `memory` - (Optional) A required amount of memory. +- `cpu` - (Optional) A required amount of CPU in millicpu (m). +- `memory` - (Optional) A required amount of memory in mebibytes (Mi). - `dind_storage` - (Optional) A pipeline shared storage. --- diff --git a/examples/pipelines/main.tf b/examples/pipelines/main.tf index 0141f5f7..2fcb99dd 100644 --- a/examples/pipelines/main.tf +++ b/examples/pipelines/main.tf @@ -64,6 +64,13 @@ steps: "context2-name", ] + # hybrid runner example + runtime_environment { + name = "csdp/runner" + cpu = "1500" # for 1.5 CPU + memory = "500" # in Mi + } + trigger { branch_regex = "/.*/gi" context = "git" @@ -99,4 +106,4 @@ steps: ANOTHER_PIP_VAR = "another_value" } } -} \ No newline at end of file +}