Class: Dependabot::Docker::FileUpdater
Constant Summary
collapse
- YAML_REGEXP =
/^[^\.].*\.ya?ml$/i
- FROM_REGEX =
/FROM(\s+--platform\=\S+)?/i
Instance Method Summary
collapse
#updated_dependency_files
Instance Method Details
#container_image_regex ⇒ Object
28
29
30
|
# File 'lib/dependabot/docker/file_updater.rb', line 28
def container_image_regex
%r{^#{FROM_REGEX}\s+(docker\.io/)?}o
end
|
#file_type ⇒ Object
18
19
20
|
# File 'lib/dependabot/docker/file_updater.rb', line 18
def file_type
"Dockerfile or Containerfile"
end
|
#yaml_file_pattern ⇒ Object
23
24
25
|
# File 'lib/dependabot/docker/file_updater.rb', line 23
def yaml_file_pattern
YAML_REGEXP
end
|