Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an updatecli manifest to track UBI9 docker image version #883

Closed
lemeurherveCB opened this issue Sep 25, 2024 · 1 comment
Closed

Add an updatecli manifest to track UBI9 docker image version #883

lemeurherveCB opened this issue Sep 25, 2024 · 1 comment

Comments

@lemeurherveCB
Copy link
Contributor

lemeurherveCB commented Sep 25, 2024

What feature do you want to see added?

#866 introduced UBI9 agents, refined in #880 but there is no updatecli manifest to keep UBI9_TAG up to date in the Dockerfile and in the docker-bake.hcl files.

I got a first version that I removed in ea74257

Without any additional spec the last tag returned is sha256-14f1cd4b565c93b7ae400db1759db485f14a9154d45f25c9558cd2a9e753d2ca.att(wrong one):

sources:
  latestVersion:
    kind: dockerimage
    name: "Get the latest UBI9 Linux version"
    spec:
      image: "registry.access.redhat.com/ubi9/ubi"

Using versionfilter: semver + trimsuffix: "-source" also returns wrong version:

sources:
  latestVersion:
    kind: dockerimage
    name: "Get the latest UBI9 Linux version"
    spec:
      image: "registry.access.redhat.com/ubi9/ubi"
      versionfilter:
        kind: semver
    transformers:
      - trimsuffix: "-source"

The line #1, matched by the keyword "ARG" and the matcher "UBI9_TAG", is changed from "ARG UBI9_TAG="9.4-1214.1726694543" to "ARG UBI9_TAG=9.4".

Same with a regexp pattern, wrong version returned.

sources:
  latestVersion:
    kind: dockerimage
    name: "Get the latest UBI9 Linux version"
    spec:
      image: "registry.access.redhat.com/ubi9/ubi"
      versionfilter:
        kind: regexp
        pattern: \d+\.\d+-\d+\.\d+
    transformers:
      - trimsuffix: "-source"

The line #1, matched by the keyword "ARG" and the matcher "UBI9_TAG", is changed from "ARG UBI9_TAG="9.4-1214.1726694543" to "ARG UBI9_TAG=9.4-947.1717074712".

Upstream changes

No response

Are you interested in contributing this feature?

No response

@MarkEWaite
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants