-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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— Setsinterruptible: trueindefault:or a named jobAddTimeout— Setstimeout:duration indefault:or a named jobAddArtifactsExpireIn— Setsartifacts: expire_in:indefault:or a named jobAddDefaultKeyword— Generic recipe to add any keyword/value underdefault:
All support optional jobName (to target a specific job instead of default:) and acceptTheirs (to preserve existing values).
Related
- Parent issue: Provide a set of 'Best Practices' that can be implemented via recipes #12
- Find recipes PR: Add search recipes for deprecated only/except keywords #32
- More complex recipes (
AddRetry,AddCache,AddWorkflowRules,BestPracticescomposite) will follow in subsequent PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status