Skip to content

Renovate doesn't update docker-compose with yaml anchors anymore #34369

@rarkins

Description

@rarkins

Discussed in #32918

Originally posted by mueller-ma December 5, 2024

How are you running Renovate?

A Mend.io-hosted app

If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.

No response

Please tell us more about your question or problem

In the past Renovate had no problems when a Docker compose file had yaml anchors. Now it doesn't extract the image anymore:

docker compose can use and parse this docker-compose file. You can see that docker includes the image in both services:

$ docker compose -f docker-compose.yml config
name: tmp
services:
  service-a:
    environment:
      SERVICE: a
    image: debian:11
    networks:
      default: null
  service-b:
    environment:
      SERVICE: b
    image: debian:11
    networks:
      default: null
networks:
  default:
    name: tmp_default
x-shared_setting:
  image: debian:11

Logs (if relevant)

Logs

DEBUG: packageFiles with updates
{
  "baseBranch": "main"
  "config": {
    "docker-compose": [
      {
        "deps": [],
        "packageFile": "docker-compose.yml"
      }
    ]
  }
}

Reproduction: renovate-reproductions/32918

Metadata

Metadata

Assignees

No one assigned

    Labels

    manager:docker-composeDocker Compose filespriority-3-mediumDefault priority, "should be done" but isn't prioritised ahead of others

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions