Skip to content

dockerfile autodiscovery is ignoring the regex/semver versionfilter spec #7139

@loispostula

Description

@loispostula

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Creating an autodiscovery for dockerfile with version filter of type regex/semver

name: 'deps(dockerfile): bump all dependencies'
autodiscovery:
    crawlers:
        dockerfile:
            versionfilter:
                kind: regex/semver
                pattern: '>=3.13.0, <3.14'
                regex: (\d*\.\d*)-slim$
    groupby: all

Creates a manifest with a wrong versionFilter

name: 'deps(dockerfile): bump "python" digest'
sources:
    python:
        name: get latest image tag for "python"
        kind: dockerimage
        spec:
            image: python
            tagfilter: ""
            versionfilter:
                kind: regex/semver
                pattern: ""
targets:
    python:
        name: 'deps: update Docker image "python" to "{{ source "python" }}"'
        kind: dockerfile
        spec:
            file: Dockerfile
            instruction:
                keyword: FROM
                matcher: python
        sourceid: python

Expected Behavior

The manifest should have the versionFilter

name: 'deps(dockerfile): bump "python" digest'
sources:
    python:
        name: get latest image tag for "python"
        kind: dockerimage
        spec:
            image: python
            tagfilter: ""
            versionfilter:
                kind: regex/semver
                pattern: '>=3.13.0, <3.14'
                regex: (\d*\.\d*)-slim$
targets:
    python:
        name: 'deps: update Docker image "python" to "{{ source "python" }}"'
        kind: dockerfile
        spec:
            file: Dockerfile
            instruction:
                keyword: FROM
                matcher: python
        sourceid: python

Steps To Reproduce

No response

Environment

- OS:
- updatecli:

Pipeline Graph

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions