Skip to content

Add simple Add* recipes for GitLab CI/CD best practices #33

@scuba10steve

Description

@scuba10steve

Summary

Introduce four simple Add* recipes that add common GitLab CI/CD best-practice keywords to .gitlab-ci.yml files. Each recipe is a thin wrapper around MergeYaml with straightforward single-value YAML snippet construction.

Recipes

  • AddInterruptible — Sets interruptible: true in default: or a named job
  • AddTimeout — Sets timeout: duration in default: or a named job
  • AddArtifactsExpireIn — Sets artifacts: expire_in: in default: or a named job
  • AddDefaultKeyword — Generic recipe to add any keyword/value under default:

All support optional jobName (to target a specific job instead of default:) and acceptTheirs (to preserve existing values).

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions